Skip to content

Commit eae56f4

Browse files
committed
fix ci
1 parent 92dc62b commit eae56f4

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

grid2op/Environment/environment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ def reset_grid(self,
851851
raise Grid2OpException(f"kwargs `method` used to set the initial state of the grid "
852852
f"is not understood (use one of `combine` or `ignore` and "
853853
f"not `{method}`)")
854+
init_action._set_topo_vect.nonzero()
854855
*_, fail_to_start, info = self.step(init_action)
855856
if fail_to_start:
856857
raise Grid2OpException(

grid2op/tests/aaa_test_backend_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ def test_01load_grid(self):
117117
else:
118118
# object does support shunts
119119
assert cls.shunts_data_available
120-
assert isinstante(cls.n_shunt, (int, dt_int)), f"Your backend does not support shunt, the class should define `n_shunt`as an int, found {cls.n_shunt}"
120+
assert isinstance(cls.n_shunt, (int, dt_int)), f"Your backend does not support shunt, the class should define `n_shunt`as an int, found {cls.n_shunt}"
121121
assert cls.name_shunt is not None, f"Your backend does not support shunt, the class should define `name_shunt` (cls.name_shunt should not be None)"
122122
assert cls.shunt_to_subid is not None, f"Your backend does not support shunt, the class should define `shunt_to_subid` (cls.shunt_to_subid should not be None)"
123-
assert isinstante(backend.n_shunt, (int, dt_int)), f"Your backend does support shunt, `backend.n_shunt` should be an int, found {cls.n_shunt}"
123+
assert isinstance(backend.n_shunt, (int, dt_int)), f"Your backend does support shunt, `backend.n_shunt` should be an int, found {cls.n_shunt}"
124124
assert backend.name_shunt is not None, f"Your backend does not support shunt, backend.name_shunt should not be None"
125125
assert backend.shunt_to_subid is not None, f"Your backend does not support shunt, backend.shunt_to_subid should not be None"
126126

grid2op/tests/test_action_set_orig_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def _get_gridpath(self):
409409
return os.path.join(PATH_DATA_TEST, "5bus_example_diff_name", "grid.json")
410410

411411
def _names_ch_to_bk(self):
412-
res = {"loads": {'load_0_0': 'tata', 'load_3_1': 'toto', 'load_4_2': 'tutu'},
412+
res = {"loads": {'load_0_0': 'tutu', 'load_3_1': 'toto', 'load_4_2': 'tata'},
413413
"prods": {"gen_0_0": "othername_0_0", "gen_1_1": "othername_1_1"},
414414
"lines": {"0_1_0": 'l_0_1_0',
415415
"0_2_1": 'l_0_2_1',

0 commit comments

Comments
 (0)