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

Fix reset info being lost in vector environments #3111

Merged
merged 2 commits into from
Oct 4, 2022

Conversation

pseudo-rnd-thoughts
Copy link
Contributor

@pseudo-rnd-thoughts pseudo-rnd-thoughts commented Oct 3, 2022

As the new reset API returns (obs, info). This was overwriting the info returned from the last step call

Reported: carlosluis/stable-baselines3#1 (comment)

This PR fixes that issues through adding a new info key, "final_info" that contains all of the info in the last step in a similar way that "final_observation" contains the last observation

Copy link
Contributor

@araffin araffin left a comment

Choose a reason for hiding this comment

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

Look good but test and doc update are missing

@pseudo-rnd-thoughts
Copy link
Contributor Author

@araffin Tests added, documentation is not in this repo but I will add when also added to gymnasium

@jkterry1 jkterry1 merged commit 1486d33 into openai:master Oct 4, 2022
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

3 participants