sinergym.utils.common.apply_wrappers_info

sinergym.utils.common.apply_wrappers_info(env: Type[Env], wrappers_info: Dict[str, Dict[str, Any]] | str) Type[Env]

Apply wrapper information to the environment.

Parameters:
  • env (Type[gym.Env]) – Environment to apply wrapper information to.

  • wrappers_info (Union[Dict[str, Dict[str, Any]], str]) – Dictionary with wrapper information or path to a YAML file containing the information.

Returns:

Environment with applied wrappers.

Return type:

Type[gym.Env]