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
In [4]: wdh.list_resources.name---------------------------------------------------------------------------TypeErrorTraceback (mostrecentcalllast)
InputIn [4], in<cellline: 1>()
---->1wdh.list_resources.nameFile~/devlp/git/weatherdata/src/weatherdata/ipm.py:72, inWeatherDataHub.list_resources(self)
61""" display a dataframe of list of resources with their description 62 63 Returns (...) 66 name and description of available weatherdatasource on IPM service 67 """68# if local:69# return list(self.local_sources)7071# else: --->72df=pandas.DataFrame(self.__resources__).T.reset_index()
73df.rename({"index":"name"},inplace=True)
74returndf[["name","description","parameters"]]
File~/devlp/git/weatherdata/src/weatherdata/ipm.py:52, inWeatherDataHub.__resources__(self)
48 @property49def__resources__(self):
51ifself.sourcesisNone:
--->52self.sources=self.ipm.get_weatherdatasource()
54iflen(self.local_sources)>0:
55self.sources.append(self.local_sources)
File~/devlp/git/agroservices/src/agroservices/ipm.py:424, inIPM.get_weatherdatasource(self)
416res=self.services.http_get(
417"wx/rest/weatherdatasource",
418frmt='json',
419headers=self.services.get_headers(content='json'),
420params={'callback':self.callback}
421 )
423forrinres:
-->424r['spatial']['geoJSON']=json.loads(r['spatial']['geoJSON'])
426returnres
The text was updated successfully, but these errors were encountered:
This is erhaps due that I am on Python 3.9 and you are in Python 3.8
I will release without tests.
And we will investigate later.
Le 28/05/2022 à 10:17, Marc LABADIE a écrit :
All test fail:
The text was updated successfully, but these errors were encountered: