WrapperRegistry¶
-
class
maze.core.wrappers.wrapper_registry.
WrapperRegistry
(*args, **kwds)¶ Handles dynamic registration of Wrapper sub-classes.
-
wrap_from_config
(env: T, wrapper_config: Union[List[Union[None, str, Mapping[str, Any], Any]], Mapping[str, Union[None, str, Mapping[str, Any], Any]]]) → Union[maze.core.wrappers.wrapper.Wrapper, T]¶ Wraps environment in wrappers specified in wrapper_config.
- Parameters
env – Environment to wrap.
wrapper_config – Wrapper specification.
- Returns
Wrapped environment of type Wrapper.
-