From dc1cf01110fe9ecee05c11dcddc50cb3c8f674fc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 22 Nov 2025 16:20:15 +0000 Subject: Use trip ID structure to link previous trips instead of block_id Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com> --- src/gtfs_vigo_stops/stop_report.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/gtfs_vigo_stops/stop_report.py') 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] -- cgit v1.3