-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.filter_by_rank() not working (with DwdRoadRequest) #1353
Comments
(Short test with the |
This may be a bit confusing but
would give you what you need. We'll probably need to make this more clear but when going through those distance sorted stations we don't really know if any of those has the requested values so what it does is consume K of N stations until RANK stations with values were found. It then stops and |
Hey @gutzbenj , Is there a way to access the actual values of these 5 closest stations? |
So you'd either have to set |
Oh okay, so there is no way of accessing the values of these stations directly as |
It is doing exactly that - looking for stations with data in accordance to the settings. But if you set |
Describe the bug
After applying
.filter_by_rank()
to aDwdRoadRequest
it still returns all stations.Sidenote:
.filter_by_distance()
still works fine.To Reproduce
Output:
If you replace
.filter_by_rank(LOCATION, 5)
with.filter_by_distance(LOCATION, 20)
it works fine:Expected behavior
Work as described = return the n closest stations.
Screenshots
Desktop (please complete the following information):
Additional context
I'm not sure, but I thought it was working some releases ago.
The text was updated successfully, but these errors were encountered: