nickolasclarke / dispatch

A discrete-event simulation (DES) model for simulating deployment of EV bus fleets, using GTFS data
2 stars 0 forks source link

harden parse_gtfs #31

Closed nickolasclarke closed 4 years ago

nickolasclarke commented 4 years ago

plenty of feeds that otherwise should be supported are not parsed. This is a placeholder to resolve all of these issues.

nickolasclarke commented 4 years ago

validation_results.zip

nickolasclarke commented 4 years ago

currently the most common error seems to be:

b'Service id chosen = frozenset({\'1\'})\nTraceback (most recent call last):\n  File "parse_gtfs.py", line 319, in <module>\n    trips      = GenerateTrips(ptg.load_geo_feed(feed_file), date, service_ids)\n  File "parse_gtfs.py", line 217, in GenerateTrips\n    trips = MatchColumn(trips,\'block_id\')\n  File "parse_gtfs.py", line 138, in MatchColumn\n    assert (df[\'start_\'+colname]==df[\'end_\'+colname]).all()\nAssertionError\n'
r-barnes commented 4 years ago

Fixed.