-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #686 from datanel/tranfers_condition
[feature] Transfers: add the possibility to determine if a transfer could be created
- Loading branch information
Showing
16 changed files
with
126 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
authors = ["Kisio Digital <[email protected]>", "Guillaume Pinot <[email protected]>"] | ||
name = "transit_model" | ||
version = "0.26.1" | ||
version = "0.27.0" | ||
license = "AGPL-3.0-only" | ||
description = "Transit data management" | ||
repository = "https://github.com/CanalTP/transit_model" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
tests/fixtures/transfers/multi_contributors/input/stop_times.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
trip_id,arrival_time,departure_time,stop_id,stop_sequence | ||
trip:1,15:45:00,15:45:00,sp_1,0 | ||
trip:1,15:46:00,15:46:00,sp_2,1 | ||
trip:1,15:47:00,15:47:00,sp_3,2 | ||
trip:2,16:45:00,16:45:00,sp_4,0 | ||
trip:2,16:46:00,16:46:00,sp_5,1 | ||
trip:2,16:47:00,16:47:00,sp_6,2 | ||
trip:1,15:45:00,15:45:00,OIF:sp_1,0 | ||
trip:1,15:46:00,15:46:00,OIF:sp_2,1 | ||
trip:1,15:47:00,15:47:00,OIF:sp_3,2 | ||
trip:2,16:45:00,16:45:00,ABC:sp_4,0 | ||
trip:2,16:46:00,16:46:00,ABC:sp_5,1 | ||
trip:2,16:47:00,16:47:00,ABC:sp_6,2 |
12 changes: 6 additions & 6 deletions
12
tests/fixtures/transfers/multi_contributors/input/stops.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
stop_id,stop_name,stop_lat,stop_lon,location_type,parent_station | ||
sp_1,sp name 1,48.84608210211328,2.372075915336609,0,sa_1 | ||
sp_2,sp name 2,48.845665532277096,2.371437549591065,0,sa_1 | ||
sp_3,sp name 3,48.845301913401144,2.369517087936402,0,sa_1 | ||
OIF:sp_1,sp name 1,48.84608210211328,2.372075915336609,0,sa_1 | ||
OIF:sp_2,sp name 2,48.845665532277096,2.371437549591065,0,sa_1 | ||
OIF:sp_3,sp name 3,48.845301913401144,2.369517087936402,0,sa_1 | ||
sa_1,sa name 1,48.844745,2.372986,1, | ||
sp_4,sp name 4,48.84608210211328,2.372075915336609,0,sa_2 | ||
sp_5,sp name 5,48.845665532277096,2.371437549591065,0,sa_2 | ||
sp_6,sp name 6,48.845301913401144,2.369517087936402,0,sa_2 | ||
ABC:sp_4,sp name 4,48.84608210211328,2.372075915336609,0,sa_2 | ||
ABC:sp_5,sp name 5,48.845665532277096,2.371437549591065,0,sa_2 | ||
ABC:sp_6,sp name 6,48.845301913401144,2.369517087936402,0,sa_2 | ||
sa_2,sa name 2,48.844745,2.372986,1, |
4 changes: 2 additions & 2 deletions
4
tests/fixtures/transfers/multi_contributors/input/transfers.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from_stop_id,to_stop_id,min_transfer_time,real_min_transfer_time,equipment_id | ||
sp_1,sp_2,50,60, | ||
sp_1,sp_3,200,210, | ||
OIF:sp_1,OIF:sp_2,50,60, | ||
OIF:sp_1,OIF:sp_3,200,210, |
42 changes: 21 additions & 21 deletions
42
tests/fixtures/transfers/multi_contributors/output/transfers.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
from_stop_id,to_stop_id,min_transfer_time,real_min_transfer_time,equipment_id | ||
sp_1,sp_1,0,120, | ||
sp_1,sp_2,50,60, | ||
sp_1,sp_3,200,210, | ||
sp_1,sp_4,0,120, | ||
sp_1,sp_5,83,203, | ||
sp_2,sp_1,83,203, | ||
sp_2,sp_2,0,120, | ||
sp_2,sp_4,83,203, | ||
sp_2,sp_5,0,120, | ||
sp_3,sp_3,0,120, | ||
sp_3,sp_6,0,120, | ||
sp_4,sp_1,0,120, | ||
sp_4,sp_2,83,203, | ||
sp_4,sp_4,0,120, | ||
sp_4,sp_5,83,203, | ||
sp_5,sp_1,83,203, | ||
sp_5,sp_2,0,120, | ||
sp_5,sp_4,83,203, | ||
sp_5,sp_5,0,120, | ||
sp_6,sp_3,0,120, | ||
sp_6,sp_6,0,120, | ||
OIF:sp_1,OIF:sp_1,0,120, | ||
OIF:sp_1,OIF:sp_2,50,60, | ||
OIF:sp_1,OIF:sp_3,200,210, | ||
OIF:sp_1,ABC:sp_4,0,120, | ||
OIF:sp_1,ABC:sp_5,83,203, | ||
OIF:sp_2,OIF:sp_1,83,203, | ||
OIF:sp_2,OIF:sp_2,0,120, | ||
OIF:sp_2,ABC:sp_4,83,203, | ||
OIF:sp_2,ABC:sp_5,0,120, | ||
OIF:sp_3,OIF:sp_3,0,120, | ||
OIF:sp_3,ABC:sp_6,0,120, | ||
ABC:sp_4,OIF:sp_1,0,120, | ||
ABC:sp_4,OIF:sp_2,83,203, | ||
ABC:sp_4,ABC:sp_4,0,120, | ||
ABC:sp_4,ABC:sp_5,83,203, | ||
ABC:sp_5,OIF:sp_1,83,203, | ||
ABC:sp_5,OIF:sp_2,0,120, | ||
ABC:sp_5,ABC:sp_4,83,203, | ||
ABC:sp_5,ABC:sp_5,0,120, | ||
ABC:sp_6,OIF:sp_3,0,120, | ||
ABC:sp_6,ABC:sp_6,0,120, |
13 changes: 13 additions & 0 deletions
13
tests/fixtures/transfers/multi_contributors/output_closure_inter_contributor/transfers.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from_stop_id,to_stop_id,min_transfer_time,real_min_transfer_time,equipment_id | ||
OIF:sp_1,OIF:sp_2,50,60, | ||
OIF:sp_1,OIF:sp_3,200,210, | ||
OIF:sp_1,ABC:sp_4,0,120, | ||
OIF:sp_1,ABC:sp_5,83,203, | ||
OIF:sp_2,ABC:sp_4,83,203, | ||
OIF:sp_2,ABC:sp_5,0,120, | ||
OIF:sp_3,ABC:sp_6,0,120, | ||
ABC:sp_4,OIF:sp_1,0,120, | ||
ABC:sp_4,OIF:sp_2,83,203, | ||
ABC:sp_5,OIF:sp_1,83,203, | ||
ABC:sp_5,OIF:sp_2,0,120, | ||
ABC:sp_6,OIF:sp_3,0,120, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters