earthobservations / wetterdienst

Open weather data for humans.
https://wetterdienst.readthedocs.io/
MIT License
354 stars 54 forks source link

Compute error when trying to filter the stations #1285

Closed bluearrow98 closed 5 months ago

bluearrow98 commented 5 months ago

Describe the bug I wanted to list all the weather stations that are near a geographical location. I was also able to do this until last week. But now, with the same code, I get an error when I try to filter the stations.

To Reproduce Steps to reproduce the behavior: Actually, this error occurs with all the filters. But just for an example, I use the rank filter: I just made a request:

request = DwdObservationRequest(
    parameter=parameters,
    period=DwdObservationPeriod.RECENT,
    resolution=DwdObservationResolution.DAILY
)

request.filter_by_rank(latlon, 5)

I get the following error:

Bildschirmfoto 2024-04-29 um 16 10 01

Expected behavior A dataframe containing all those stations that satisfy the chosen filter should be returned.

Desktop (please complete the following information):

bluearrow98 commented 5 months ago

Switched from PyPi version to the latest github version. It solved my problem.

gutzbenj commented 5 months ago

As nothing much has changed since the latest PyPi version you could also do this:

pip install --upgrade wetterdienst