diff options
| author | copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> | 2025-11-22 16:20:15 +0000 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-11-22 18:32:34 +0100 |
| commit | dc1cf01110fe9ecee05c11dcddc50cb3c8f674fc (patch) | |
| tree | 19384e4bd9d50486103c67d06a9e3bb25e9efcd6 /src | |
| parent | 71dd498ab6ef05df944ce42e0d2228d8ff4dc418 (diff) | |
Use trip ID structure to link previous trips instead of block_id
Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/gtfs_vigo_stops/stop_report.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gtfs_vigo_stops/stop_report.py b/src/gtfs_vigo_stops/stop_report.py index 014e40f..adc08b1 100644 --- a/src/gtfs_vigo_stops/stop_report.py +++ b/src/gtfs_vigo_stops/stop_report.py @@ -244,12 +244,10 @@ def build_trip_previous_shape_map( first_stop.stop_id, last_stop.stop_id )) - # For each shift, sort trips by trip number and link consecutive trips for shift_key, shift_trips in trips_by_shift.items(): # Sort by trip number shift_trips.sort(key=lambda x: x[1]) - # Link consecutive trips if their stops match for i in range(1, len(shift_trips)): current_trip, current_num, current_start_stop, _ = shift_trips[i] |
