Skip to content
Snippets Groups Projects
Commit 9cd4e926 authored by Shinya Shiroshita's avatar Shinya Shiroshita
Browse files

disable ContinuingTimeLimit

parent 6a2fc3fe
No related branches found
No related tags found
No related merge requests found
......@@ -24,11 +24,13 @@ def wrap_env(
action_choices,
action_choices_vector_converter=None):
# wrap env: time limit...
"""
if isinstance(env, gym.wrappers.TimeLimit):
logger.info('Detected `gym.wrappers.TimeLimit`! Unwrap it and re-wrap our own time limit.')
env = env.env
max_episode_steps = env.spec.max_episode_steps
env = ContinuingTimeLimit(env, max_episode_steps=max_episode_steps)
"""
# wrap env: observation...
# NOTE: wrapping order matters!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment