Skip to content

Commit 78044e3

Browse files
committed
fix a compat issue: MultiBinary now accepts only int and not np.int32
Signed-off-by: DONNOT Benjamin <[email protected]>
1 parent af1a3a0 commit 78044e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grid2op/gym_compat/gym_space_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _generic_gym_space(cls, dt, sh, low=None, high=None):
6868

6969
@classmethod
7070
def _boolean_type(cls, sh):
71-
return cls._MultiBinaryType(n=sh)
71+
return cls._MultiBinaryType(n=int(sh))
7272

7373
@staticmethod
7474
def _simplifykeys_for_timestamps(key):

0 commit comments

Comments
 (0)