-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
Fixed gym.vector.make
disable env checker parameter
#2871
Merged
jkterry1
merged 1 commit into
openai:master
from
pseudo-rnd-thoughts:fixed-vector-make-disable-env-checker
Jun 8, 2022
Merged
Fixed gym.vector.make
disable env checker parameter
#2871
jkterry1
merged 1 commit into
openai:master
from
pseudo-rnd-thoughts:fixed-vector-make-disable-env-checker
Jun 8, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…posite case than was intended to
pseudo-rnd-thoughts
added a commit
to pseudo-rnd-thoughts/gym
that referenced
this pull request
Jun 8, 2022
…n the opposite case than was intended to (openai#2871)" This reverts commit 519dfd9.
jkterry1
pushed a commit
that referenced
this pull request
Jun 26, 2022
* Allows a new RNG to be generated with seed=-1 and updated env_checker to fix bug if environment doesn't use np_random in reset * Revert "fixed `gym.vector.make` where the checker was being applied in the opposite case than was intended to (#2871)" This reverts commit 519dfd9. * Remove bad pushed commits * Fixed spelling in core.py * Pins pytest to the last py 3.6 version * Add support for action masking in Space.sample(mask=...) * Fix action mask * Fix action_mask * Fix action_mask * Added docstrings, fixed bugs and added taxi examples * Fixed bugs * Add tests for sample * Add docstrings and test space sample mask Discrete and MultiBinary * Add MultiDiscrete sampling and tests * Remove sample mask from graph * Update gym/spaces/multi_discrete.py Co-authored-by: Markus Krimmel <montcyril@gmail.com> * Updates based on Marcus28 and jjshoots for Graph.py * Updates based on Marcus28 and jjshoots for Graph.py * jjshoot review * jjshoot review * Update assert check * Update type hints Co-authored-by: Markus Krimmel <montcyril@gmail.com>
jkterry1
pushed a commit
that referenced
this pull request
Jun 29, 2022
* Allows a new RNG to be generated with seed=-1 and updated env_checker to fix bug if environment doesn't use np_random in reset * Revert "fixed `gym.vector.make` where the checker was being applied in the opposite case than was intended to (#2871)" This reverts commit 519dfd9. * Remove bad pushed commits * Fixed spelling in core.py * Pins pytest to the last py 3.6 version * Allow Box automatic scalar shape * Add test box and change default from () to (1,) * update Box shape inference with more strict checking * Update the box shape and add check on the custom Box shape * Removed incorrect shape type and assert shape code * Update the Box and associated tests
jkterry1
pushed a commit
that referenced
this pull request
Jul 4, 2022
* Allows a new RNG to be generated with seed=-1 and updated env_checker to fix bug if environment doesn't use np_random in reset * Revert "fixed `gym.vector.make` where the checker was being applied in the opposite case than was intended to (#2871)" This reverts commit 519dfd9. * Remove bad pushed commits * Fixed spelling in core.py * Pins pytest to the last py 3.6 version * Allow Box automatic scalar shape * Add test box and change default from () to (1,) * update Box shape inference with more strict checking * Update the box shape and add check on the custom Box shape * Removed incorrect shape type and assert shape code * Update the Box and associated tests * Remove all folders and files from pyright exclude * Revert issues * Push RedTachyon code review * Add Python Platform * Remove play from pyright check * Fixed CI issues * remove mujoco env type hinting * Fixed pixel observation test * Added some new type hints * Fixed CI errors * Fixed CI errors * Remove play.py from exlucde pyright * Fixed pyright issues
jkterry1
pushed a commit
that referenced
this pull request
Jul 11, 2022
* Allows a new RNG to be generated with seed=-1 and updated env_checker to fix bug if environment doesn't use np_random in reset * Revert "fixed `gym.vector.make` where the checker was being applied in the opposite case than was intended to (#2871)" This reverts commit 519dfd9. * Remove bad pushed commits * Fixed spelling in core.py * Pins pytest to the last py 3.6 version * Add Text space * Add Text space * Added Text space * Updated comment * Allow Box automatic scalar shape * Add test box and change default from () to (1,) * Refactored conditional * Refactored contains() * update Box shape inference with more strict checking * Update the box shape and add check on the custom Box shape * Removed incorrect shape type and assert shape code * Update the Box and associated tests * Move dependency error to inside the atari environment * Update the gym version to v0.25.0 * Fixed bugs in Text space and tests * Code review by Drew Co-authored-by: Ryan Rudes <ryanrudes@gmail.com>
jkterry1
pushed a commit
that referenced
this pull request
Jul 13, 2022
* Allows a new RNG to be generated with seed=-1 and updated env_checker to fix bug if environment doesn't use np_random in reset * Revert "fixed `gym.vector.make` where the checker was being applied in the opposite case than was intended to (#2871)" This reverts commit 519dfd9. * Remove bad pushed commits * Fixed spelling in core.py * Pins pytest to the last py 3.6 version * Allow Box automatic scalar shape * Add test box and change default from () to (1,) * update Box shape inference with more strict checking * Update the box shape and add check on the custom Box shape * Removed incorrect shape type and assert shape code * Update the Box and associated tests * Move dependency error to inside the atari environment * Update the gym version to v0.25.0 * Bump car racing and remove car racing discrete
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In #2864,
gym.vector.make
was upgraded to consider thedisable_env_checker
parameter ingym.make
The intention was that if the environment checker was enabled, i.e.
disable_env_checker=False
as default, then this would only happen for the first of the vector environment to prevent the user being spammed by warnings for all X number of environments.However, I forgot I got the new check that wrong way around meaning that only if the env checker was enabled and only on the first environment would the environment checker actually be disabled.
This PR fixes that check by checking if the environment checker is disabled, for all environments, or if the environment number is greater than one. Meaning that for all other environments, the checker is disabled.