Skip to content

Fix action handling in PettingZoo test environment - #6348

Open
arolson wants to merge 1 commit into
Unity-Technologies:developfrom
arolson:fix/pettingzoo-test-env-actions
Open

arolson wants to merge 1 commit into
Unity-Technologies:developfrom
arolson:fix/pettingzoo-test-env-actions

Conversation

@arolson

@arolson arolson commented Nov 23, 2026

Copy link
Copy Markdown

Proposed change(s)

Fix SimpleEnvironment._take_action() so continuous and discrete actions are applied during PettingZoo wrapper tests.

The previous conditions included and not _act, which prevented a populated ActionTuple from being processed. This change removes those conditions and adds parameterized regression coverage for both continuous and discrete actions.

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

None.

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (not applicable; test-only change)
  • Updated the documentation (not applicable)
  • Updated the migration guide (not applicable)

Other comments

Validation performed:

  • PettingZoo wrapper and regression tests: 9 passed
  • Black
  • mypy
  • flake8
  • pyupgrade
  • Repository validation hooks

@arolson
arolson requested a review from a team as a code owner November 23, 2026 17:35
@CLAassistant

CLAassistant commented Nov 23, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

This branch has not been deployed

No deployments
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.

2 participants