Skip to content

Commit

Permalink
update deprecated gym.vector.make() to gym.make_vec()
Browse files Browse the repository at this point in the history
  • Loading branch information
luigiberducci committed Feb 23, 2024
1 parent 367d367 commit 34e61b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_f110_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ def test_manual_reset_options_in_asynch_vec_env(self):
"num_agents": num_agents,
"observation_config": {"type": "kinematic_state"},
}
vec_env = gym.vector.make(
"f110_gym:f110-v0", asynchronous=True, config=config, num_envs=num_envs
vec_env = gym.make_vec(
"f110_gym:f110-v0", vectorization_mode="async", config=config, num_envs=num_envs
)

rnd_poses = np.random.random((2, 3))
Expand Down Expand Up @@ -219,8 +219,8 @@ def test_auto_reset_options_in_synch_vec_env(self):
"observation_config": {"type": "kinematic_state"},
"reset_config": {"type": "rl_random_random"},
}
vec_env = gym.vector.make(
"f110_gym:f110-v0", asynchronous=False, config=config, num_envs=num_envs
vec_env = gym.make_vec(
"f110_gym:f110-v0", vectorization_mode="sync", config=config, num_envs=num_envs,
)

obss, infos = vec_env.reset()
Expand Down

0 comments on commit 34e61b3

Please sign in to comment.