Closed kumamt closed 1 year ago
I can confirm this issue using the following:
docker run -i ghcr.io/earthobservations/wetterdienst-standard:0.51.0 \
wetterdienst values \
--provider=dwd \
--network=mosmix \
--resolution=small \
--coordinates=50.78,6.083 \
--rank=1 \
--si-units=1 \
--parameter=small
I get the same issue for the line:
stations = request.filter_by_distance(latitude=52.30, longitude=8.92, distance=50)
Hi there,
thank you for writing in. We can confirm the error - thank you for the repro, @darian-heede. We are looking into the issue. Apparently, CI has observed this or a similar error once ^1. I think it will be some kind of glitch in the raw data.
With kind regards, Andreas.
Hi again. 0a46a50f7a has a quick patch [^patch], which fixes parsing the MOSMIX station list resource ^stations. It may have changed its format. At GH-847, we will have a corresponding discussion.
[^patch]: Also available in text format at mosmix-stations.patch.
Dear all,
the latest release (0.52.0) has fixed it. Please try it out!
The fix in 0.52.0 works flawlessly. Thanks for the awesome work @amotl and @gutzbenj!
Excellent. Thanks for reporting back!
Thank you so much @amotl and @gutzbenj for fixing the issue 👍🏽
A bit detail about the code:
I have used the example code posted on the Wetterdienst Mosmix example section and it throws the same error. The code I wrote to extract information worked smoothly before and now it throws the error mentioned.
The Text Version :
I have checked about the error and I think the value contains space and when we try to convert it to float, the program throws the error. Thank you so much for the response. Love the application and the work you guys have done. Helps a lot. Thank you