فهرست منبع

add new_step_api to custom env during testing

saleml 2 سال پیش
والد
کامیت
a5d7130e19
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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
         )