Skip to content

Commit

Permalink
fixing issue rte-france#229
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed Jun 17, 2021
1 parent 003b51d commit 1e6ca00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Change Log
- [FIXED]: a bug in the opponent space where the "`previous_fail`" kwargs was not updated properly and send wrongly
to the opponent
- [FIXED]: a bug in the geometric opponent when it did attack that failed.
- [FIXED]: `Issue#229 <https://github.com/rte-france/Grid2Op/issues/229>`_ typo in the `AlarmReward` class when reset.
- [ADDED] support for the "alarm operator" / "attention budget" feature
- [ADDED] retrieval of the `max_step` (ie the maximum number of step that can be performed for the current episode)
in the observation
Expand Down
4 changes: 2 additions & 2 deletions grid2op/Reward/AlarmReward.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def initialize(self, env):

def reset(self, env):
self.total_time_steps = env.max_episode_duration()
self.window_size = env.parameters.ALARM_BEST_TIME
self.best_time = env.parameters.ALARM_WINDOW_SIZE
self.best_time = env.parameters.ALARM_BEST_TIME
self.window_size = env.parameters.ALARM_WINDOW_SIZE

def _tmp_score_time(self, step_alarm, step_game_over):
"""
Expand Down

0 comments on commit 1e6ca00

Please sign in to comment.