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

Make infos length consistent #172

Open
wants to merge 2 commits into
base: 2.0
Choose a base branch
from
Open

Conversation

RyanNavillus
Copy link

The current vector environments will not send infos that are empty ({} or []). If the environment ever returns {} for infos they will not be added to the infos list, causing it to have fewer elements and making it impossible to determine which environment each info dictionary belongs to. You're likely to run into this issue if you use infos to send crucial training information that isn't available during reset, or while debugging an environment that uses infos.

This PR removes the checks that prevent empty infos from being sent. I'm not sure what issue they were originally supposed to prevent, but I think it is good practice to have the infos length always equal the number of environments.

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.

1 participant