We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f699d8d commit 5d1c1e1Copy full SHA for 5d1c1e1
gym-unity/gym_unity/envs/__init__.py
@@ -174,6 +174,12 @@ def step(self, action: List[Any]) -> GymStepResult:
174
done (boolean/list): whether the episode has ended.
175
info (dict): contains auxiliary diagnostic information.
176
"""
177
+ if self.game_over:
178
+ raise UnityGymException(
179
+ "You are calling 'step()' even though this environment has already "
180
+ "returned done = True. You must always call 'reset()' once you "
181
+ "receive 'done = True'."
182
+ )
183
if self._flattener is not None:
184
# Translate action into list
185
action = self._flattener.lookup_action(action)
0 commit comments