Skip to content

Commit 7d360a0

Browse files
authored
Merge pull request #405 from jinyan1214/master
JZ: fix double digits hour bug in residual demand
2 parents abecee5 + 88e6e32 commit 7d360a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/systemPerformance/ResidualDemand/run_residual_demand.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ def create_congestion_animation(edge_vol_dir, output_file_name):
136136
]
137137
times = []
138138
for ii in range(len(all_frames)):
139-
hour = all_frames[ii][11:12]
140-
minute = int(all_frames[ii][15:16]) * 10
139+
hour = all_frames[0].split('_')[2][2:]
140+
minute = int(all_frames[0].split('_')[3][2:]) * 10
141141

142142
minute_end = minute + 10
143143

0 commit comments

Comments
 (0)