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

MORecordEpisodeStatistics return scalars when not VecEnv #30

Merged
merged 3 commits into from
Feb 1, 2023

Conversation

ffelten
Copy link
Collaborator

@ffelten ffelten commented Feb 1, 2023

Fix #28

The wrapper was wrapping all infos in numpy arrays (like time and episode length), even when the environments where not vectorized. This didn't make sense and was a behaviour change compared to 0.2.1. Hence the revert here.

Note: this is not the current behaviour of Gymnasium (they do return numpy arrays, hence our behaviour change), but they will change it in the future.

@LucasAlegre LucasAlegre merged commit 8b7ce2d into main Feb 1, 2023
@LucasAlegre LucasAlegre deleted the hotfix/scalar-values-in-recordepisodewrapper branch February 1, 2023 09:32
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.

MORecordEpisodeWrapper should not be vectorized
2 participants