Maintenance update with no substantial API changes comprised of code simplification, docstring and print updates, and unit test coverage expansion focusing on gtfs.utils_format.py and gtfs.utils_validation.py which include:
updates to gtfs.utils_format.py and gtfs.utils_validation.py :
simplified all individual gtfs file read functions into one _read_gtfs_file() function with a global data schema config dict. Also added global configs to gtfs.load.py for code simplification.
refactored _timetoseconds(): fixed time component validation code to work as intended, clarified prints, replaced '' string values with nan to ensure values are the same as they were prior to processing
refactored _add_unique_agencyid(): simplified code, added notes with more description as to the various GTFS agency cases supported in each code section, clarified prints, ensure output dfs are identical to input, and fully support no GTFS feeds that have no calendar.txt to supplement changes made in https://github.com/UDST/urbanaccess/pull/70
simplify code in _stops_agencyid()
refactored _trip_selection_selector(): simplified code, clarified prints and notes, and fully support feeds with no calendar.txt to supplement changes made in https://github.com/UDST/urbanaccess/pull/70
simplify GTFS description column mapping functions and consolidate into one function _apply_gtfs_definition() and place all mapping dicts into a global config
general updates:
minor formatting updates
docstring updates
print updates
add new and updated unit tests for gtfs.utils_format.py and gtfs.utils_validation.py to expand coverage to 100%
Maintenance update with no substantial API changes comprised of code simplification, docstring and print updates, and unit test coverage expansion focusing on
gtfs.utils_format.py
andgtfs.utils_validation.py
which include:updates to gtfs.utils_format.py and gtfs.utils_validation.py :
general updates: