Skip to content

Commit c696bcf

Browse files
Fix departed id counting (#704)
1 parent feea3ab commit c696bcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/core/kernel/vehicle/traci.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def update(self, reset):
191191
self._num_departed.append(
192192
len(sim_obs[tc.VAR_DEPARTED_VEHICLES_IDS]))
193193
self._num_arrived.append(len(sim_obs[tc.VAR_ARRIVED_VEHICLES_IDS]))
194-
self._departed_ids.append(sim_obs[tc.VAR_ARRIVED_VEHICLES_IDS])
194+
self._departed_ids.append(sim_obs[tc.VAR_DEPARTED_VEHICLES_IDS])
195195
self._arrived_ids.append(sim_obs[tc.VAR_ARRIVED_VEHICLES_IDS])
196196

197197
# update the "headway", "leader", and "follower" variables

0 commit comments

Comments
 (0)