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

73 Get Pettingzoo example to work again. #102

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Conversation

chenkins
Copy link
Contributor

@chenkins chenkins commented Dec 15, 2024

Changes

  • update dependencies for pettingzoo
  • remove stale pettinzoo contrib code
  • TODO: unit tests/ci support for dependencies.
  • TODO: documentation

Related issues

Resolves #73.

Checklist

  • Tests are included for relevant behavior changes.
  • Documentation is added in the docs folder for relevant behavior changes. If you made important user-facing
    changes, describe them under the [Unreleased] tag in CHANGELOG.md.
  • New package dependencies are declared in the pyproject.toml file.
    Requirement files have been updated by running tox -e requirements.
  • Code works with all supported Python versions (3.10, 3.11 and 3.12). Checks run with all three version and are
    required to run successfully.
  • Code is formatted according to PEP 8 (an IDE like PyCharm can do this for you).
  • Technical guidelines listed in CONTRIBUTING.md are followed.

@chenkins chenkins changed the title Get Pettingzoo example to work again WiP. 73 Get Pettingzoo example to work again. Dec 15, 2024
@chenkins chenkins modified the milestones: 4.0.4, 4.0.5 Jan 17, 2025
@chenkins chenkins force-pushed the 74-policy-evaluation-and-training-cli branch 3 times, most recently from 48347b6 to 29fa6a6 Compare February 14, 2025 11:47
self.agents: list[AgentID] = self.wrap.get_agent_handles()
self.possible_agents: list[AgentID] = self.wrap.get_agent_handles()
self.observation_spaces: dict[AgentID, gym.spaces.Space] = {
# TODO bad smell: must be gymobservationbuilder
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typing

assert hasattr(wrap.obs_builder, "get_observation_space"), f"{type(wrap.obs_builder)} is not gym-compatible, missing get_observation_space"
self.wrap = wrap

# TODO should be AEC instead
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AEC instead of parallel

Base automatically changed from 74-policy-evaluation-and-training-cli to main February 18, 2025 13:36
@chenkins chenkins modified the milestones: 4.0.5, 4.0.6 Feb 24, 2025
Signed-off-by: chenkins <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rllib (ray.io), gym(nasium), Pettingzoo compatibility
2 participants