Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed May 3, 2021
1 parent 2fa424e commit f755f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grid2op/tests/test_gym_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def test_low_high_obs_space(self):
low = np.zeros(env.n_line, dtype=dt_int)
high = np.zeros(env.n_line, dtype=dt_int) + max(env.parameters.NB_TIMESTEP_RECONNECTION,
env.parameters.NB_TIMESTEP_COOLDOWN_LINE,
env._oppSpace.attack_duration)
env._oppSpace.attack_max_duration)
assert np.array_equal(env_gym.observation_space[key].low, low), f"issue for {key}"
assert np.array_equal(env_gym.observation_space[key].high, high), f"issue for {key}"

Expand Down

0 comments on commit f755f47

Please sign in to comment.