Skip to content

Commit 44c8aa3

Browse files
FIX: Add blocking to optimetrics analyze method (#6135)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 3a2aaed commit 44c8aa3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

doc/changelog.d/6135.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add blocking to optimetrics analyze method

src/ansys/aedt/core/modules/design_xploration.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ def analyze(
494494
machine: str = "localhost",
495495
run_in_thread: bool = False,
496496
revert_to_initial_mesh: bool = False,
497+
blocking: bool = True,
497498
) -> bool:
498499
"""Solve the active design.
499500
@@ -520,6 +521,9 @@ def analyze(
520521
``False``.
521522
revert_to_initial_mesh : bool, optional
522523
Whether to revert to initial mesh before solving or not. Default is ``False``.
524+
blocking : bool, optional
525+
Whether to block script while analysis is completed or not. It works from AEDT 2023 R2.
526+
Default is ``True``.
523527
524528
Returns
525529
-------
@@ -541,6 +545,7 @@ def analyze(
541545
machine=machine,
542546
run_in_thread=run_in_thread,
543547
revert_to_initial_mesh=revert_to_initial_mesh,
548+
blocking=blocking,
544549
)
545550

546551

0 commit comments

Comments
 (0)