Skip to content

Commit 256ac1b

Browse files
committed
Removing deprecated arguments in Gym's register function
1 parent 826f5e6 commit 256ac1b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

textworld/gym/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,8 @@ def make_batch(env_id: str, batch_size: int, parallel: bool = False) -> str:
142142
id=batch_env_id,
143143
entry_point=entry_point,
144144
max_episode_steps=env_spec.max_episode_steps,
145-
max_episode_seconds=env_spec.max_episode_seconds,
146145
nondeterministic=env_spec.nondeterministic,
147146
reward_threshold=env_spec.reward_threshold,
148-
trials=env_spec.trials,
149147
# Setting the 'vnc' tag avoid wrapping the env with a TimeLimit wrapper. See
150148
# https://github.com/openai/gym/blob/4c460ba6c8959dd8e0a03b13a1ca817da6d4074f/gym/envs/registration.py#L122
151149
tags={"vnc": "foo"},

0 commit comments

Comments
 (0)