Rename "rgb_array" to "rgb_array_list" and "single_rgb_array" to "rgb_array" (#3040)

* initial commit

* Fix CI

* Fixed CI

* third time the charm

* Fix mujoco environment render modes order

* Remove unnecessary changes

* pre-commit

* Fix tests

* Comment out test render modes

* Fix code review and readd mujoco

* pre-commit

* Fix testing envs

* Fix all GenericTestEnvs

* Do not run mujoco-py render environments
This commit is contained in:
Mark Towers
2022-09-01 14:06:42 +01:00
committed by GitHub
parent aaa6cd9f33
commit 799c8d20c1
65 changed files with 307 additions and 255 deletions

View File

@@ -97,7 +97,9 @@ def test_step_async_vector_env(shared_memory, use_single_action_space):
@pytest.mark.parametrize("shared_memory", [True, False])
def test_call_async_vector_env(shared_memory):
env_fns = [make_env("CartPole-v1", i, render_mode="rgb_array") for i in range(4)]
env_fns = [
make_env("CartPole-v1", i, render_mode="rgb_array_list") for i in range(4)
]
env = AsyncVectorEnv(env_fns, shared_memory=shared_memory)
_ = env.reset()