Skip to content

Commit

Permalink
fixed metrics logging for PyMARL integration with lifelong scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Tviskaron committed Oct 29, 2023
1 parent 43fbb1b commit 4a3d06e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pogema/integrations/pymarl.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def step(self, actions):
info = {}
done = all(terminated) or all(truncated)
if done:
info.update(CSR=infos[0]['metrics']['CSR'])
info.update(ISR=infos[0]['metrics']['ISR'])

for key, value in infos[0]['metrics'].items():
info[key] = value
return sum(rewards), done, info

def get_obs(self):
Expand Down

0 comments on commit 4a3d06e

Please sign in to comment.