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

Add warning for order of wrapping in the MORecordEpisodeStatistics Wrapper #70

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

ffelten
Copy link
Collaborator

@ffelten ffelten commented Jun 21, 2023

The MORecordEpisodeStatististics wrapper does not return the same thing with vector envs depending on if it is wrapper before or after.

The right order is:

env = VectorEnv(...)
env = MORecordEpisodeStatistic(env)

I added a note in the doc to avoid confusion.

This will change when Gymnasium has the new vector envs so I do not plan to make effort to support the other way around.

@ffelten ffelten merged commit 7992b32 into main Jun 21, 2023
10 checks passed
@ffelten ffelten deleted the doc/update-doc-for-morecordstatistics branch June 21, 2023 11:02
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.

None yet

1 participant