mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-23 23:12:46 +00:00
Fix OneOf
shared memory and add pytest.skip
to tests (#999)
This commit is contained in:
@@ -421,7 +421,7 @@ def _unflatten_sequence(space: Sequence, x: tuple[Any, ...]) -> tuple[Any, ...]
|
||||
|
||||
@unflatten.register(OneOf)
|
||||
def _unflatten_oneof(space: OneOf, x: NDArray[Any]) -> tuple[int, Any]:
|
||||
idx = int(x[0])
|
||||
idx = np.int64(x[0])
|
||||
sub_space = space.spaces[idx]
|
||||
|
||||
original_size = flatdim(sub_space)
|
||||
|
Reference in New Issue
Block a user