Skip to content

Commit 238cf80

Browse files
committed
comment out update on link cum_arr and cum_dep
- which are not used for critical computation in the current implementation.
1 parent cf4f12e commit 238cf80

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

path4gmns/simulation.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ def perform_simple_simulation(ui, loading_profile='random'):
5151
if i % num == 0:
5252
print(f'simu time = {i/num} min, CA = {cum_arr}, CD = {cum_dep}')
5353

54-
if i > 0:
55-
for link in links:
56-
# link.cum_arr and link.cum_dep are not used for critical calculation
57-
link.cum_arr[i] = link.cum_arr[i-1]
58-
link.cum_dep[i] = link.cum_dep[i-1]
54+
# comment out from now on as link.cum_arr and link.cum_dep are not used
55+
# for critical calculation
56+
# if i > 0:
57+
# for link in links:
58+
# link.cum_arr[i] = link.cum_arr[i-1]
59+
# link.cum_dep[i] = link.cum_dep[i-1]
5960

6061
if A.have_dep_agents(i):
6162
for a_no in A.get_td_agents(i):

tests/demo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ def test_simulation():
226226

227227
print('writing agent trajectories')
228228
pg.output_agent_trajectory(network)
229-
print('\ntrajectories can be found in trajectory.csv')
230229

231230

232231
def demo_mode(mode):

0 commit comments

Comments
 (0)