Skip to content

Commit

Permalink
Umshini: fix minor bug with agent id (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottower authored Nov 15, 2023
2 parents 0b2fc47 + d9acd80 commit 5d97a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatarena/environments/umshini/pettingzoo_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def observe(self, agent: AgentID) -> ObsType:
if agent not in self.agents:
return None
# Observations and infos are calculated in step(), but need to be calculated before the first step() call
elif isinstance(agent, str):
elif not isinstance(agent, str):
raise TypeError("AgentID must be a string")
else:
# get only the messages that this agent can see
Expand Down

0 comments on commit 5d97a8d

Please sign in to comment.