mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-22 07:02:19 +00:00
Add check doctest to CI and fixed existing errors (#274)
This commit is contained in:
@@ -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__(
|
||||
|
Reference in New Issue
Block a user