Skip to content

Commit

Permalink
FIX: Solve setup in optimetrics (#5090)
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys authored Aug 23, 2024
1 parent 558e2e3 commit d54c1d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions _unittest_solvers/test_00_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/aedt/core/application/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d54c1d2

Please sign in to comment.