Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update supersuit usage in assert messages #1238

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tianshou/env/pettingzoo_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ def __init__(self, env: BaseWrapper):
self.env.observation_space(agent) == self.observation_space for agent in self.agents
), (
"Observation spaces for all agents must be identical. Perhaps "
"SuperSuit's pad_observations wrapper can help (useage: "
"`supersuit.aec_wrappers.pad_observations(env)`"
"SuperSuit's pad_observations wrapper can help (usage: "
"`supersuit.pad_observations_v0(env)`"
)

assert all(self.env.action_space(agent) == self.action_space for agent in self.agents), (
"Action spaces for all agents must be identical. Perhaps "
"SuperSuit's pad_action_space wrapper can help (useage: "
"`supersuit.aec_wrappers.pad_action_space(env)`"
"SuperSuit's pad_action_space wrapper can help (usage: "
"`supersuit.pad_action_space_v0(env)`"
)

self.reset()
Expand Down
Loading