Skip to content

Commit baa26f8

Browse files
committed
some modifications after sonarcloud
1 parent a8b53a7 commit baa26f8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

grid2op/Environment/baseEnv.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4209,8 +4209,6 @@ def generate_classes(self, *, local_dir_id=None, _guard=None, _is_base_env__=Tru
42094209
# initialized the "__init__" file
42104210
_init_txt = ""
42114211
mode = "a"
4212-
if not _is_base_env__:
4213-
_init_txt = _init_txt
42144212

42154213
# generate the classes
42164214
# for the environment

grid2op/Space/GridObjects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2903,7 +2903,7 @@ def _aux_init_grid_from_cls(cls, gridobj, name_res):
29032903
return cls_res
29042904

29052905
super_module = importlib.import_module(module_nm, super_module_nm) # env/path/_grid2op_classes/
2906-
module_all_classes = importlib.import_module(f"{module_nm}", super_module) # module specific to the tmpdir created
2906+
module_all_classes = importlib.import_module(f"{module_nm}") # module specific to the tmpdir created
29072907
try:
29082908
module = importlib.import_module(f".{name_res}_file", package=module_nm) # module containing the definition of the class
29092909
except ModuleNotFoundError:

0 commit comments

Comments
 (0)