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

Remove unused stops and routes #127

Merged
merged 1 commit into from
Mar 1, 2018
Merged

Remove unused stops and routes #127

merged 1 commit into from
Mar 1, 2018

Conversation

ialokim
Copy link
Contributor

@ialokim ialokim commented Feb 15, 2018

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.

Copy link
Contributor

@xamanu xamanu left a 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.

@xamanu xamanu added the ready label Feb 25, 2018
Copy link
Owner

@grote grote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ialokim!

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.

Looks like it doesn't add the possibility, but removes the stops and routes right way.

@@ -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):
Copy link
Owner

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ialokim
Copy link
Contributor Author

ialokim commented Feb 26, 2018

Looks like it doesn't add the possibility, but removes the stops and routes right way.

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?

Copy link
Collaborator

@nlehuby nlehuby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:

@grote grote merged commit 7c8d18c into grote:master Mar 1, 2018
@ialokim ialokim deleted the remove-unused-data branch March 3, 2018 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants