-
Notifications
You must be signed in to change notification settings - Fork 1
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
74 130 clean feed and route type cleaner #195
Closed
+1,356
−327
Closed
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
06aa699
Add validation for invalid route type warnings; update tests; add fun…
CBROWN-ONS a420098
Add docstring to private function
CBROWN-ONS 37df68a
added _remove_validation_row function to gtfs_utils
CBROWN-ONS a4f452b
Resolve merge conflicts
CBROWN-ONS 70ef720
Add tests for _get_validation_warnings
CBROWN-ONS 449b445
Added tests for _remove_validation_row
CBROWN-ONS 85e6631
Add tests for validate_route_type_warnings
CBROWN-ONS e9e3c9c
Add pipeline model for validating gtfs
CBROWN-ONS 4ec8fcd
Merge branch 'dev' into 74-130-clean-feed-and-route-type-cleaner
CBROWN-ONS 4f9802f
Fix tests to align with new validation pipeline
CBROWN-ONS 9131720
Add tests for new is_valid functionality; add additional test for val…
CBROWN-ONS cd2a5c3
Add addtional test for is_valid()
CBROWN-ONS 5f97b53
Add core cleaner that utilises gtfs-kit cleaners
CBROWN-ONS ad38cac
add _function_pipeline(); updaet clean_feed to use;update tests; impl…
CBROWN-ONS 3cb7443
Add tests for core_cleaner
CBROWN-ONS d6e73d2
Update core_validation docstrings and type hinting; add accepted gtfs…
CBROWN-ONS 3beafa3
add code for validate_gtfs_files()
CBROWN-ONS 160d7b5
add tests for validte_gtfs_file()
CBROWN-ONS 54acd6a
Add clean_unrecognised_column_warnings function
CBROWN-ONS be28415
add tests for clean_unregnised_column_warnings; add new cleaner to fu…
CBROWN-ONS 4ce54c3
patch bug in html report generation
CBROWN-ONS a9ea856
merge with dev
CBROWN-ONS 3fa8aa2
182: add type defences to gtfs_utils; add fast travel tables to GtfsI…
CBROWN-ONS 606e25d
182: cleaners tech debt; add GtfsInstance attr 'units'; passing test …
CBROWN-ONS 5c2cd9b
182: cleaners tech debt; use pd.isna() instead of math.isnan()
CBROWN-ONS d324dfc
Add tests for returning speed bound of unrecognised route_type
CBROWN-ONS c679d23
180: Functionalise part of fast travel cleaners; remove validate opti…
CBROWN-ONS 8c16268
fix tests
CBROWN-ONS eb1e7c3
Add tests for clean_duplicate_stop_times
CBROWN-ONS 539ff66
Improve coverage
CBROWN-ONS 728f128
Merge with dev and resolve conflicts
CBROWN-ONS 9f3cc25
chore: Up to date with dev
b2a2175
chore: minor typos in gtfs_utils.py
SergioRec a82c8f7
chore: minor typos in Test_AddValidationRow and Test_FilterGtfsAround…
SergioRec 0068a61
fix: change wrong path in test
SergioRec f6f2b09
fix: merge with dev
CBROWN-ONS 034c6fb
fix: update tests to better align with new cleaning/validation pipelines
CBROWN-ONS dd1c2a3
fix: update typo in function name
CBROWN-ONS f9ad23d
Merge branch 'dev' into 74-130-clean-feed-and-route-type-cleaner
CBROWN-ONS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
When running this function in the Wales GTFS, it seems that it also purges instances of fast travel between multiple stops.
So when running:
It gets rid of all
Fast Travel Between Consecutive Stops
warnings as well as allFast Travel Over Multiple Stops
warnings. This causes that runningclean_multiple_stop_fast_travel_warnings
afterclean_consecutive_stop_fast_travel_warnings
has no effect. I'm not sure if there may be instances where this is not the case, but I've tried it with GTFS from Wales, Scotland and London.Considering this, it is unlikely that we'll run
clean_consecutive_stop_fast_travel_warnings
in isolation, as it could leave some problematic trips undetected. Would it make sense to merge them into a single function and apply them sequentially? Or runclean_multiple_stop_fast_travel_warnings
by default, and have an optional flag to also run the other step if requested, always after the former? This way we would be refactoring these two functions into a single one and ensuring cleaning steps are applied in the right order.