Add check doctest to CI and fixed existing errors (#274)

This commit is contained in:
Valentin
2023-01-20 14:28:09 +01:00
committed by GitHub
parent 1551b89257
commit b4caf9df16
45 changed files with 321 additions and 222 deletions

View File

@@ -49,12 +49,12 @@ class AsyncVectorEnv(VectorEnv):
>>> import gymnasium as gym
>>> env = gym.vector.AsyncVectorEnv([
... lambda: gym.make("Pendulum-v0", g=9.81),
... lambda: gym.make("Pendulum-v0", g=1.62)
... lambda: gym.make("Pendulum-v1", g=9.81),
... lambda: gym.make("Pendulum-v1", g=1.62)
... ])
>>> env.reset()
array([[-0.8286432 , 0.5597771 , 0.90249056],
[-0.85009176, 0.5266346 , 0.60007906]], dtype=float32)
>>> env.reset(seed=42)
(array([[-0.14995256, 0.9886932 , -0.12224312],
[ 0.5760367 , 0.8174238 , -0.91244936]], dtype=float32), {})
"""
def __init__(