Skip to content

Commit

Permalink
Add copy of info dict to metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasAlegre committed Jul 26, 2023
1 parent 13102e2 commit 596b7c6
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 @@ -357,7 +357,7 @@ def _compute_info(self):
info.update(self._get_system_info())
if self.add_per_agent_info:
info.update(self._get_per_agent_info())
self.metrics.append(info)
self.metrics.append(info.copy())
return info

def _compute_observations(self):
Expand Down

0 comments on commit 596b7c6

Please sign in to comment.