csparpa / pyowm

A Python wrapper around the OpenWeatherMap web API
https://pyowm.readthedocs.io
MIT License
789 stars 171 forks source link

AgroMonitor API - Soil temp is not always a float #288

Closed geofbaum closed 5 years ago

geofbaum commented 5 years ago

From #245 soil temp reported back by the API may not always be a float which will cause an error to be thrown due to the asserts in the init section of the soil.py file. One might also assume though, I have not tested it, that depending on the soil data source and polygon location that the value could also return a None. However, the issue here is mainly that the Soil Temp could be returned as an integer or float.

csparpa commented 5 years ago

Fixed in real time :) still need to push the commit.... thanks for pointing this out!

geofbaum commented 5 years ago

No problem, glad I could help!