mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-18 12:57:38 +00:00
Added singledispatch utility to vector.utils & changed order of space argument. (#2536)
* Fixed ordering of space. Added singledispatch utility. * Added singledispatch utility to vector.utils & changed order of space argument * Fixed Error from _BaseGymSpaces * Minor adjustment for Discrete Spaces * Fixed Tests/ to reflect changes * Fixed precommit error - custom namespaces * Concrete Implementations start with _
This commit is contained in:
@@ -46,7 +46,7 @@ def test_concatenate(space):
|
||||
|
||||
samples = [space.sample() for _ in range(8)]
|
||||
array = create_empty_array(space, n=8)
|
||||
concatenated = concatenate(samples, array, space)
|
||||
concatenated = concatenate(space, samples, array)
|
||||
|
||||
assert np.all(concatenated == array)
|
||||
assert_nested_equal(array, samples, n=8)
|
||||
|
Reference in New Issue
Block a user