mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-18 21:06:59 +00:00
Update vector space utility functions for all spaces (#223)
This commit is contained in:
@@ -112,9 +112,10 @@ TESTING_COMPOSITE_SPACES_IDS = [f"{space}" for space in TESTING_COMPOSITE_SPACES
|
||||
TESTING_SPACES: List[Space] = TESTING_FUNDAMENTAL_SPACES + TESTING_COMPOSITE_SPACES
|
||||
TESTING_SPACES_IDS = TESTING_FUNDAMENTAL_SPACES_IDS + TESTING_COMPOSITE_SPACES_IDS
|
||||
|
||||
CUSTOM_SPACES = [
|
||||
Space(),
|
||||
Tuple([Space(), Space(), Space()]),
|
||||
Dict(a=Space(), b=Space()),
|
||||
]
|
||||
CUSTOM_SPACES_IDS = [f"{space}" for space in CUSTOM_SPACES]
|
||||
|
||||
class CustomSpace(Space):
|
||||
def __eq__(self, o: object) -> bool:
|
||||
return isinstance(o, CustomSpace)
|
||||
|
||||
|
||||
TESTING_CUSTOM_SPACE = CustomSpace()
|
||||
|
Reference in New Issue
Block a user