mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-31 10:09:53 +00:00
Fix space utils for Discrete with non-zero start (#2645)
* Fix flatten utils to handle Discrete.start * Fix vector space utils to handle Discrete.start * More granular dispatch in vector utils * Fix Box including the high end of the interval
This commit is contained in:
@@ -18,6 +18,7 @@ spaces = [
|
||||
Box(low=0, high=255, shape=(), dtype=np.uint8),
|
||||
Box(low=0, high=255, shape=(32, 32, 3), dtype=np.uint8),
|
||||
Discrete(2),
|
||||
Discrete(5, start=-2),
|
||||
Tuple((Discrete(3), Discrete(5))),
|
||||
Tuple(
|
||||
(
|
||||
|
Reference in New Issue
Block a user