Skip to content

Commit

Permalink
fix the error in Grid2op#365
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed Nov 30, 2022
1 parent 98fe64a commit cf66427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grid2op/Space/GridObjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2629,7 +2629,7 @@ def process_grid2op_compat(cls):
if cls.glop_version < "1.6.0":
# this feature did not exist before.
cls.dim_alarms = 0

@classmethod
def get_obj_connect_to(cls, _sentinel=None, substation_id=None):
"""
Expand Down Expand Up @@ -3739,7 +3739,7 @@ def init_grid_from_dict_for_pickle(name_res, orig_cls, cls_attr):
res_cls._compute_pos_big_topo_cls()
if res_cls.glop_version != grid2op.__version__:
res_cls.process_grid2op_compat()
res_cls.process_grid2op_shunt_data()
res_cls.process_shunt_data()
# add the class in the "globals" for reuse later
globals()[name_res] = res_cls

Expand Down

0 comments on commit cf66427

Please sign in to comment.