Skip to content

Commit

Permalink
fix(ray): make mixed action types work with latest numpy version
Browse files Browse the repository at this point in the history
  • Loading branch information
visuallization committed Jul 27, 2023
1 parent 326b188 commit 20c4df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion godot_rl/wrappers/ray_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 20c4df7

Please sign in to comment.