Skip to content

Commit

Permalink
Merge pull request #67 from elliottower/umshini-bugfix-role-info
Browse files Browse the repository at this point in the history
Fix minor bug in umshini environments: role not always shown in info
  • Loading branch information
yuxiang-wu authored Oct 25, 2023
2 parents 81917d3 + 5084deb commit e2ed82e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions chatarena/environments/umshini/pettingzoo_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,6 @@ def observe(self, agent: AgentID) -> ObsType:
# Observations and infos are calculated in step(), but need to be calculated before the first step() call
elif type(agent) != str:
raise TypeError("AgentID must be a string")
elif self.observations[agent] != {}:
return self.observations[agent]
else:
# get only the messages that this agent can see
messages = self._env.get_observation(agent)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "chatarena"
version = "0.1.12.10"
version = "0.1.12.11"
authors = [
{ name = "Yuxiang Wu", email = "[email protected]" },
]
Expand Down

0 comments on commit e2ed82e

Please sign in to comment.