Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
e6b0a40
New Step API with terminated, truncated bools instead of done
arjun-kg Apr 14, 2022
6618da5
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Apr 20, 2022
a0c4475
Setting return_two_dones=False as default
arjun-kg Apr 20, 2022
2aabc30
update warnings
arjun-kg Apr 20, 2022
1babe4e
pytest - ignore deprecation warnings
arjun-kg Apr 21, 2022
c9c6add
Only ignore step api deprecation warnings
arjun-kg Apr 21, 2022
c5fe53c
fix duplicate wrapping bug in vector envs
arjun-kg Apr 21, 2022
f88927d
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Apr 22, 2022
7c1e9c7
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Apr 25, 2022
6af7182
edit docstrings, comments, warnings
arjun-kg Apr 25, 2022
22c1cc7
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg May 3, 2022
68ef969
step compatibility for wrappers, vectors
arjun-kg May 4, 2022
f06343b
reset tests back to old api
arjun-kg May 4, 2022
794737b
fix circular import
arjun-kg May 4, 2022
f89e5da
merge tests with master
arjun-kg May 4, 2022
8b518bb
existing code, tests work
arjun-kg May 5, 2022
9a2a9af
fix compat at registration, tests
arjun-kg May 5, 2022
29eafe5
docstrings, tests passing
arjun-kg May 5, 2022
63fc044
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg May 28, 2022
97f36d3
dealing with conflicts
arjun-kg May 28, 2022
63d3d19
update wrapper class to use step compatibility
arjun-kg May 28, 2022
492c6e1
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Jun 2, 2022
9ce03cb
add warning for play
arjun-kg Jun 2, 2022
f93295f
add todo
arjun-kg Jun 2, 2022
1940494
replace 'closing' with 'final'
arjun-kg Jun 2, 2022
f12b5fb
fix pre-commit
arjun-kg Jun 2, 2022
aa5a071
remove previously missed `done` references
arjun-kg Jun 3, 2022
e135b9e
fix step compat in atari wrapper reset
arjun-kg Jun 3, 2022
2bb742a
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Jun 7, 2022
1f11077
fix tests with step returning np.bool_
arjun-kg Jun 7, 2022
e861fbc
remove warning for using new api
arjun-kg Jun 7, 2022
fe04e7c
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Jun 8, 2022
8e56f45
pre-commit fixes
arjun-kg Jun 8, 2022
4491d9a
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Jun 9, 2022
be947e3
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Jun 20, 2022
5e8f085
new API does not include 'TimeLimit.truncated' in info
arjun-kg Jun 20, 2022
cdb3516
fix checks, tests
arjun-kg Jun 20, 2022
8cc2074
vector info mask - fix wrong underscore
arjun-kg Jun 20, 2022
2f83d55
dont remove from info
arjun-kg Jun 21, 2022
57e839c
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Jun 21, 2022
b1660cf
edit definitions
arjun-kg Jun 21, 2022
ea10e7a
remove whitespaces :/
arjun-kg Jun 21, 2022
bffa257
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Jul 3, 2022
d7dff2c
update tests
arjun-kg Jul 3, 2022
b2c10a4
fix pattern
arjun-kg Jul 3, 2022
6553bed
restructure warnings
arjun-kg Jul 4, 2022
50d367e
fix incorrect warning
arjun-kg Jul 4, 2022
d71836f
fix incorrect warnings (properly)
arjun-kg Jul 4, 2022
78a507e
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Jul 4, 2022
a747625
add warning to env checker
arjun-kg Jul 5, 2022
28c7b36
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Jul 5, 2022
d65d21b
Merge branch 'master' of https://github.com/openai/gym into done_term…
arjun-kg Jul 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix duplicate wrapping bug in vector envs
  • Loading branch information
arjun-kg committed Apr 21, 2022
commit c5fe53cb9b51f04a6e1e5d2e2137ab1d8e014590
3 changes: 1 addition & 2 deletions gym/vector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def make(
from gym.envs import make as make_

def _make_env():
env = make_(id, **kwargs)
env = StepCompatibility(env, return_two_dones=True)
env = make_(id, return_two_dones=True, **kwargs)
if wrappers is not None:
if callable(wrappers):
env = wrappers(env)
Expand Down
2 changes: 1 addition & 1 deletion gym/wrappers/step_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _step_returns_old_to_new(self, step_returns):
logger.deprecation(
"[StepAPI] Using a wrapper to transform env with old step API into new. This wrapper will be removed in the future. "
"It is recommended to upgrade the core env to the new step API."
"If 'TimeLimit.truncated' is set at truncation, terminated and truncated values will be accurate"
"If 'TimeLimit.truncated' is set at truncation, terminated and truncated values will be accurate. "
"Otherwise, `terminated=done` and `truncated=False`"
)

Expand Down