Quellcode durchsuchen

add new_step_api to custom env during testing

saleml vor 2 Jahren
Ursprung
Commit
a5d7130e19
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      tests/test_wrappers.py

+ 1 - 0
tests/test_wrappers.py

@@ -196,6 +196,7 @@ class EmptyEnvWithExtraObs(EmptyEnv):
 
     def __init__(self) -> None:
         super().__init__(size=5)
+        self.new_step_api = True
         self.observation_space["size"] = gym.spaces.Box(
             low=0, high=np.iinfo(np.uint).max, shape=(2,), dtype=np.uint
         )