Skip to content

Commit

Permalink
fixed gym.vector.make where the checker was being applied in the op…
Browse files Browse the repository at this point in the history
…posite case than was intended to (openai#2871)
  • Loading branch information
pseudo-rnd-thoughts authored Jun 8, 2022
1 parent 9acf9cd commit 519dfd9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gym/vector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def _make_env():
return _make_env

env_fns = [
create_env(env_num == 0 and disable_env_checker is False)
for env_num in range(num_envs)
create_env(disable_env_checker or env_num > 0) for env_num in range(num_envs)
]
return AsyncVectorEnv(env_fns) if asynchronous else SyncVectorEnv(env_fns)

0 comments on commit 519dfd9

Please sign in to comment.