From 20c4df7ed73e04eeb04c0e4d16d00091dad7818d Mon Sep 17 00:00:00 2001 From: visuallization Date: Thu, 27 Jul 2023 14:14:27 +0200 Subject: [PATCH] fix(ray): make mixed action types work with latest numpy version --- godot_rl/wrappers/ray_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/godot_rl/wrappers/ray_wrapper.py b/godot_rl/wrappers/ray_wrapper.py index 9357214c..9c4caffe 100644 --- a/godot_rl/wrappers/ray_wrapper.py +++ b/godot_rl/wrappers/ray_wrapper.py @@ -47,7 +47,7 @@ def vector_reset(self, *, seeds: Optional[List[int]] = None, options: Optional[L def vector_step( self, actions: List[EnvActionType] ) -> Tuple[List[EnvObsType], List[float], List[bool], List[EnvInfoDict]]: - actions = np.array(actions) + actions = np.array(actions, dtype=np.dtype(object)) self.obs, reward, term, trunc, info = self._env.step(actions, order_ij=True) return self.obs, reward, term, trunc, info