Skip to content

Commit

Permalink
fix a bug: opponent was not deactivated in grid2oputils
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed May 31, 2023
1 parent 411ea62 commit badc8ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion chronix2grid/grid2op_utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,12 @@ def make_env_for_loss(path_env, env_param, load_p, load_q, final_gen_p,
"prod_v": gen_v, # np.concatenate([gen_v[0].reshape(1,-1), gen_v])}
"start_datetime": start_date_dt,
"time_interval": dt_dt,
}
},
opponent_budget_per_ts=0.,
opponent_init_budget=0.,
opponent_class=BaseOpponent,
opponent_budget_class=NeverAttackBudget,
opponent_action_class=DontAct,
)
return env_for_loss

Expand Down

0 comments on commit badc8ae

Please sign in to comment.