Skip to content

Commit

Permalink
Add system info to pettingzoo api
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasAlegre committed Jul 23, 2023
1 parent 5443f6c commit 13102e2
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 @@ -539,7 +539,7 @@ def compute_info(self):
infos = self.env._compute_info()
for a in self.agents:
for k, v in infos.items():
if k.startswith(a):
if k.startswith(a) or k.startswith("system"):
self.infos[a][k] = v

def observation_space(self, agent):
Expand Down

0 comments on commit 13102e2

Please sign in to comment.