浏览代码

Merge pull request #2001 from Unity-Technologies/develop-fixgymblack

Re-fix Black format on gym_unity
/develop-generalizationTraining-TrainerController
GitHub 5 年前
当前提交
ad07d4f3
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 6
      gym-unity/gym_unity/envs/unity_env.py

6
gym-unity/gym_unity/envs/unity_env.py


uint8_visual=False,
multiagent=False,
flatten_branched=False,
no_graphics=False
no_graphics=False,
):
"""
Environment initialization

:param flatten_branched: If True, turn branched discrete action spaces into a Discrete space rather than MultiDiscrete.
:param no_graphics: Whether to run the Unity simulator in no-graphics mode
"""
self._env = UnityEnvironment(environment_filename, worker_id, no_graphics=no_graphics)
self._env = UnityEnvironment(
environment_filename, worker_id, no_graphics=no_graphics
)
self.name = self._env.academy_name
self.visual_obs = None
self._current_state = None

正在加载...
取消
保存