Skip to content

AttributeError: 'NoneType' object has no attribute 'promotePrefixes' #3

@jaredwo

Description

@jaredwo

suds-py3 error when running below code that queries NRCS AWDB web service. Possibility due to: cackharot/suds-py3#37 .

import obsio
import pandas as pd
	
# List of elements to obtain
elems = ['tmin', 'tmax', 'swe']
	
# Lat/Lon bounding box for the Pacific Northwest
bbox = obsio.BBox(west_lon=-126, south_lat=42, east_lon=-111, north_lat=50)

# Start, end dates as pandas Timestamp objects
start_date = pd.Timestamp('2015-01-01')
end_date = pd.Timestamp('2015-01-31')

# Initialize factory with specified parameters
obsiof = obsio.ObsIoFactory(elems, bbox, start_date, end_date)

# Create ObsIO object for accessing daily NRCS observations
nrcs_io = obsiof.create_obsio_dly_nrcs()

# All ObsIO objects contain a stns attribute. This is a pandas DataFrame
# containing metadata for all stations that met the specified parameters.
print(nrcs_io.stns)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions