You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error:
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-22-cf516445d9a4> in <module>
----> 1 [action for action in episode_data.env_actions]
<ipython-input-22-cf516445d9a4> in <listcomp>(.0)
----> 1 [action for action in episode_data.env_actions]
~/dev/ExpertOp4Grid/venv_expert4grid/lib/python3.6/site-packages/grid2op/Episode/EpisodeData.py in __next__(self)
498 self.i = self.i + 1
499 if self.i < len(self) + 1:
--> 500 return self.objects[self.i - 1]
501 else:
502 raise StopIteration
IndexError: list index out of range
Notice:
it works fine if you set
episode_data.env_actions._game_over=34#instead of 35
[actionforactioninepisode_data.env_actions]
The text was updated successfully, but these errors were encountered:
Environment
1.1.1
osx
Bug description
Not able to iterate properly on env.actions from episode_data when a game over happens before the end of a scenario
How to reproduce
redispatching-baseline.zip
Notice:
it works fine if you set
The text was updated successfully, but these errors were encountered: