mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-01 14:10:30 +00:00
Fix Multidiscrete.from_jsonable
for windows (#932)
This commit is contained in:
@@ -172,7 +172,7 @@ class MultiDiscrete(Space[NDArray[np.integer]]):
|
||||
self, sample_n: list[Sequence[int]]
|
||||
) -> list[NDArray[np.integer[Any]]]:
|
||||
"""Convert a JSONable data type to a batch of samples from this space."""
|
||||
return [np.array(sample) for sample in sample_n]
|
||||
return [np.array(sample, dtype=np.int64) for sample in sample_n]
|
||||
|
||||
def __repr__(self):
|
||||
"""Gives a string representation of this space."""
|
||||
|
Reference in New Issue
Block a user