diff --git a/blocks_to_transfers/convert_blocks.py b/blocks_to_transfers/convert_blocks.py index cf8815b..2b0ca2d 100644 --- a/blocks_to_transfers/convert_blocks.py +++ b/blocks_to_transfers/convert_blocks.py @@ -41,7 +41,7 @@ def group_trips(gtfs): for trip in sorted(gtfs.trips.values(), key=lambda trip: trip.first_departure): - if not trip.block_id: + if (not trip.block_id) or (trip.stop_shape is None): continue if len(gtfs.stop_times.get(trip.trip_id, [])) < 2: diff --git a/dependency_info.py b/dependency_info.py index 31d15c3..746ba67 100644 --- a/dependency_info.py +++ b/dependency_info.py @@ -1 +1 @@ -py_gtfs_loader = '0.1.12' +py_gtfs_loader = '0.1.15' diff --git a/setup.py b/setup.py index 12ecb39..0108909 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ import dependency_info setup(name='GTFS-blocks-to-transfers', - version='1.7.0', + version='1.7.1', description='Convert GTFS blocks to trip-to-trip transfers', url='https://github.com/TransitApp/GTFS-blocks-to-transfers', author='Nicholas Paun',