Fix OneOf shared memory and add pytest.skip to tests (#999)

This commit is contained in:
Mark Towers
2024-04-06 13:20:10 +01:00
committed by GitHub
parent 9c812af180
commit 0fe94efa26
10 changed files with 50 additions and 27 deletions

View File

@@ -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)