Skip to content

Commit

Permalink
Done when sim_step >= sim_max_time instead of >
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasAlegre committed Feb 22, 2023
1 parent 53c5611 commit cf46b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sumo_rl/environment/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def _apply_actions(self, actions):

def _compute_dones(self):
dones = {ts_id: False for ts_id in self.ts_ids}
dones['__all__'] = self.sim_step > self.sim_max_time
dones['__all__'] = self.sim_step >= self.sim_max_time
return dones

def _compute_info(self):
Expand Down

0 comments on commit cf46b7d

Please sign in to comment.