Skip to content

Commit c8f91fe

Browse files
Add JS2A
1 parent 2ba0764 commit c8f91fe

File tree

13 files changed

+818
-85
lines changed

13 files changed

+818
-85
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: check-yaml
1111
always_run: true
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.14.10
13+
rev: v0.15.4
1414
hooks:
1515
- id: ruff-check
1616
always_run: true

analysis/analysis_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ def get_station_agg_stats(df: pd.DataFrame, rail_graph: RailGraph) -> pd.DataFra
122122
)
123123
df.columns = ["_".join(col).strip("_") for col in df.columns.values]
124124
df["station_name"] = df["start"].apply(
125-
lambda station_code: rail_graph.station_code_to_station[
126-
station_code
127-
].station_name
125+
lambda station_code: (
126+
rail_graph.station_code_to_station[station_code].station_name
127+
)
128128
)
129129

130130
df["latitude"] = df["start"].apply(

config_examples/network_dtl_2e.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ JE6 = "Jurong Town Hall"
154154
JE7 = "Pandan Reservoir"
155155
JS1 = "Choa Chu Kang"
156156
JS2 = "Choa Chu Kang West"
157+
JS2A = "Forest Hill"
157158
JS3 = "Tengah"
158159
JS4 = "Hong Kah"
159160
JS5 = "Corporation"
@@ -447,7 +448,8 @@ JE4-JE5 = {duration_asc = 85, duration_desc = 85, dwell_time_asc = 28, dwell_tim
447448
JE5-JE6 = {duration_asc = 90, duration_desc = 90, dwell_time_asc = 45, dwell_time_desc = 28}
448449
JE6-JE7 = {duration_asc = 80, duration_desc = 80, dwell_time_asc = 28, dwell_time_desc = 60}
449450
JS1-JS2 = {duration_asc = 90, duration_desc = 90, dwell_time_asc = 60, dwell_time_desc = 28}
450-
JS2-JS3 = {duration_asc = 140, duration_desc = 140, dwell_time_asc = 28, dwell_time_desc = 45}
451+
JS2-JS2A = {duration_asc = 80, duration_desc = 80, dwell_time_asc = 28, dwell_time_desc = 28}
452+
JS2A-JS3 = {duration_asc = 80, duration_desc = 80, dwell_time_asc = 28, dwell_time_desc = 45}
451453
JS3-JS4 = {duration_asc = 100, duration_desc = 100, dwell_time_asc = 45, dwell_time_desc = 28}
452454
JS4-JS5 = {duration_asc = 125, duration_desc = 125, dwell_time_asc = 28, dwell_time_desc = 28}
453455
JS5-JS6 = {duration_asc = 85, duration_desc = 85, dwell_time_asc = 28, dwell_time_desc = 28}

config_examples/network_future.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ JE6 = "Jurong Town Hall"
153153
JE7 = "Pandan Reservoir"
154154
JS1 = "Choa Chu Kang"
155155
JS2 = "Choa Chu Kang West"
156+
JS2A = "Forest Hill"
156157
JS3 = "Tengah"
157158
JS4 = "Hong Kah"
158159
JS5 = "Corporation"
@@ -453,7 +454,8 @@ JE4-JE5 = {duration_asc = 85, duration_desc = 85, dwell_time_asc = 28, dwell_tim
453454
JE5-JE6 = {duration_asc = 90, duration_desc = 90, dwell_time_asc = 45, dwell_time_desc = 28}
454455
JE6-JE7 = {duration_asc = 80, duration_desc = 80, dwell_time_asc = 28, dwell_time_desc = 60}
455456
JS1-JS2 = {duration_asc = 90, duration_desc = 90, dwell_time_asc = 60, dwell_time_desc = 28}
456-
JS2-JS3 = {duration_asc = 140, duration_desc = 140, dwell_time_asc = 28, dwell_time_desc = 45}
457+
JS2-JS2A = {duration_asc = 80, duration_desc = 80, dwell_time_asc = 28, dwell_time_desc = 28}
458+
JS2A-JS3 = {duration_asc = 80, duration_desc = 80, dwell_time_asc = 28, dwell_time_desc = 45}
457459
JS3-JS4 = {duration_asc = 100, duration_desc = 100, dwell_time_asc = 45, dwell_time_desc = 28}
458460
JS4-JS5 = {duration_asc = 125, duration_desc = 125, dwell_time_asc = 28, dwell_time_desc = 28}
459461
JS5-JS6 = {duration_asc = 85, duration_desc = 85, dwell_time_asc = 28, dwell_time_desc = 28}

0 commit comments

Comments
 (0)