Skip to content
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

[Jormungandr]: Geovelo: places_count added #4211

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
pre-commit
azime committed Feb 5, 2024

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
commit 81c38526abd821d9378e13a8b12a425dde1c81c3
2 changes: 1 addition & 1 deletion source/jormungandr/jormungandr/street_network/geovelo.py
Original file line number Diff line number Diff line change
@@ -453,7 +453,7 @@ def is_reached_by_physical_mode(self, place):
return self.mode_weight_keys & self.get_physical_modes_uris(place)

def get_truncated_places_isochrone(self, places_isochrone):
return places_isochrone[:self.places_count]
return places_isochrone[: self.places_count]

def filter_places_isochrone(self, places_isochrone):
result = (p for p in places_isochrone if self.is_reached_by_physical_mode(p))