-
Notifications
You must be signed in to change notification settings - Fork 417
[Environment] Complete PettingZooWrapper state support
#2953
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
[Environment] Complete PettingZooWrapper state support
#2953
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/rl/2953
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
PettingZooWrapper state supportPettingZooWrapper state support
vmoens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks that's amazing. Can you add a quick test in test_libs.py for this feature?
|
@matteobettini I guess this slipped through as we don't do a |
|
This is super strange, state should have already been present in resets and step as also benchmarl is using it, let me have a look tonight. I might have missed something major! |
|
Holy moly! I did miss something MAJOR!! Thanks a million for fixing this, I am so ashamed :(((( The chaced zero specs meant that the states are there but they were all zeros that is why me or the checks never got this |
The `PettingZooWrapper` implementation related to the environment state was limited to configuring the spec. This commit complete it by setting the state in `reset` and `step`.
4c39068 to
46286b3
Compare
Co-authored-by: Vincent Moens <[email protected]> (cherry picked from commit d882ea2)
Description
Set the "state" field in
stepandreset.Motivation and Context
The
PettingZooWrappersupport of (environment) state was limited to configuring the spec. This commit completes it by setting the state inresetandstep.Types of changes
Checklist
PettingZooWrapperis currently not tested.