Skip to content

Commit

Permalink
Merge da40d60 into be06f6f
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenevinitsky committed Jan 16, 2019
2 parents be06f6f + da40d60 commit ee3a864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/core/kernel/vehicle/traci.py
Expand Up @@ -812,7 +812,7 @@ def _prev_edge_followers(self, veh_id, edge_dict, lane, num_edges):
def apply_acceleration(self, veh_ids, acc):
"""See parent class."""
for i, vid in enumerate(veh_ids):
if acc[i] is not None:
if acc[i] is not None and vid in self.get_ids():
this_vel = self.get_speed(vid)
next_vel = max([this_vel + acc[i] * self.sim_step, 0])
self.kernel_api.vehicle.slowDown(vid, next_vel, 1)
Expand Down

0 comments on commit ee3a864

Please sign in to comment.