-
Notifications
You must be signed in to change notification settings - Fork 31
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
Remove unused stops and routes #127
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -41,6 +41,19 @@ def add_stops_to_feed(self, feed, data): | |||
# Add stop to feed | |||
gtfs_stop_id = self._add_stop_to_feed(stop, feed) | |||
|
|||
def remove_unused_stops_from_feed(self, feed): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you maybe add a docstring here and above that explains when this method is called?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
That's right, it removes them right away. But why would one prefer to have them blowing up the filesize? But as stated above, for #118 I could introduce another argument switch to turn this behavior of removing off? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:
This PR adds the possibility to remove unused stops and routes from the final GTFS file. In order to allow #118, there could be easily added an argument switch.