diff --git a/_unittest_solvers/test_00_analyze.py b/_unittest_solvers/test_00_analyze.py index a3f0d2991f2..032ebd83917 100644 --- a/_unittest_solvers/test_00_analyze.py +++ b/_unittest_solvers/test_00_analyze.py @@ -217,6 +217,9 @@ def test_02_hfss_export_results(self, hfss_app): intrinsics=[]) assert not os.path.exists(fld_file2) + hfss_app.variable_manager.set_variable(name="dummy", expression=1, is_post_processing=True) + sweep = hfss_app.parametrics.add(variable="dummy", start_point=0, end_point=1, step=2) + assert hfss_app.analyze_setup(name=sweep.name, cores=4) def test_03a_icepak_analyze_and_export_summary(self): self.icepak_app.solution_type = self.icepak_app.SOLUTIONS.Icepak.SteadyFlowOnly @@ -548,6 +551,7 @@ def test_09c_compute_com(self, local_scratch): com_param.export_spisim_cfg(str(Path(local_scratch.path) / "test.cfg")) com_0, com_1 = spisim.compute_com(0, Path(local_scratch.path) / "test.cfg") assert com_0 and com_1 + def test_10_export_to_maxwell(self, add_app): app = add_app("assm_test", application=Rmxprt, subfolder="T00") app.analyze(cores=1) diff --git a/src/ansys/aedt/core/application/analysis.py b/src/ansys/aedt/core/application/analysis.py index 2a8bb4f07a5..d31c8bfa54d 100644 --- a/src/ansys/aedt/core/application/analysis.py +++ b/src/ansys/aedt/core/application/analysis.py @@ -1919,7 +1919,7 @@ def analyze_setup( else: try: self.logger.info("Solving Optimetrics") - self.ooptimetrics.solve_setup(name) + self.ooptimetrics.SolveSetup(name) except Exception: # pragma: no cover if set_custom_dso and active_config: self.set_registry_key(r"Desktop/ActiveDSOConfigurations/" + self.design_type, active_config)