Skip to content

Commit bece550

Browse files
committed
fix an issue introduced when loading a class from file
Signed-off-by: DONNOT Benjamin <[email protected]>
1 parent 67491a8 commit bece550

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

grid2op/Space/GridObjects.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import numpy as np
2424
import sys
2525

26-
import importlib.metadata
2726
from packaging import version
2827
from typing import Dict, Type, Union, Literal, Any, List, Optional, ClassVar, Tuple
2928

@@ -2943,6 +2942,10 @@ def _aux_init_grid_from_cls(cls, gridobj, name_res):
29432942
if cls_res._CLS_DICT is None:
29442943
tmp = {}
29452944
cls_res._make_cls_dict_extended(cls_res, tmp, as_list=False)
2945+
2946+
cls_res._compute_pos_big_topo_cls()
2947+
cls_res.process_shunt_static_data()
2948+
cls_res.process_detachment()
29462949
return cls_res
29472950

29482951
@classmethod

0 commit comments

Comments
 (0)