panodata / dwdweather2

Python client to access weather data from Deutscher Wetterdienst (DWD), the federal meteorological service in Germany.
https://community.panodata.org/t/dwdweather2-a-python-client-to-access-weather-data-from-deutscher-wetterdienst-dwd/98
MIT License
72 stars 13 forks source link

Float data mapped as int in Dataset #19

Closed schmiddim closed 4 years ago

schmiddim commented 4 years ago

Station "662" has no data for category "soil_temperature" 50%|████████████████ | 271257/541989 [01:20<01:05, 4125.29it/s]Error in converting field 'solar_duration', value '118.0' to int. File "/home/xxxxxxx/.local/lib/python3.6/site-packages/dwdweather/core.py", line 469, in import_measures_textfile cell = int(cell)

How to reproduce:


from dwdweather import DwdWeather
from datetime import datetime

dw = DwdWeather(resolution="hourly")

dw.query(station_id=662, timestamp=datetime.now())

My Fix: https://github.com/panodata/dwdweather2/pull/20

amotl commented 4 years ago

Merged #20. Thanks!