Skip to content

Commit

Permalink
fix broken observation tests
Browse files Browse the repository at this point in the history
Signed-off-by: DONNOT Benjamin <[email protected]>
  • Loading branch information
BDonnot committed Nov 21, 2024
1 parent 47ae6b2 commit 964899f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion grid2op/tests/test_Observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def setUp(self):
"name_storage": [],
"glop_version": grid2op.__version__,
# "env_name": "rte_case14_test",
"env_name": "rte_case14_testTestBasisObsBehaviour",
"env_name": "rte_case14_testPandaPowerBackendTestBasisObsBehaviour",
"sub_info": [3, 6, 4, 6, 5, 6, 3, 2, 5, 3, 3, 3, 4, 3],
"load_to_subid": [1, 2, 13, 3, 4, 5, 8, 9, 10, 11, 12],
"gen_to_subid": [1, 2, 5, 7, 0],
Expand Down
2 changes: 1 addition & 1 deletion grid2op/tests/test_noisy_obs.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_with_copy(self):

def test_simulate(self):
sim_o, *_ = self.obs.simulate(self.env.action_space())
assert type(sim_o).env_name == "educ_case14_storage"+type(self).__name__
assert type(sim_o).env_name == "educ_case14_storagePandaPowerBackend"+type(self).__name__
assert isinstance(sim_o, CompleteObservation)

# test that it is reproducible
Expand Down

0 comments on commit 964899f

Please sign in to comment.