diff --git a/src/geouned/GEOUNED/core.py b/src/geouned/GEOUNED/core.py index 0125f4d5..b003639d 100644 --- a/src/geouned/GEOUNED/core.py +++ b/src/geouned/GEOUNED/core.py @@ -230,8 +230,6 @@ def from_json(cls, filename: str): cad_to_csg = cls() - cad_to_csg.load_step_file(**config["load_step_file"]) - for key in config.keys(): if key in ["load_step_file", "export_csg"]: @@ -254,6 +252,7 @@ def from_json(cls, filename: str): f"Invalid key '{key}' found in config file {filename}. Acceptable key names are 'load_step_file', 'export_csg', 'Settings', 'Parameters', 'Tolerances' and 'NumericFormat'" ) + cad_to_csg.load_step_file(**config["load_step_file"]) cad_to_csg.start() if "export_csg" in config.keys(): cad_to_csg.export_csg(**config["export_csg"])