You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When downloading all sites in observations the resulting data is a list of sites.
M = metoffer.MetOffer(APIkey)
x = M.loc_observations(request = metoffer.ALL) # same as using 'all'
y = metoffer.Weather(x)
>> TypeError: list indices must be integers or slices, not str
This bit of code on the init method is failing because Location is a list of dictionaries.
returned_data["SiteRep"]["DV"]["Location"]["i"]
>> Error
returned_data["SiteRep"]["DV"]["Location"][0]["i"]
>> Works
The text was updated successfully, but these errors were encountered:
When downloading all sites in observations the resulting data is a list of sites.
This bit of code on the init method is failing because
Location
is a list of dictionaries.The text was updated successfully, but these errors were encountered: