Skip to content

Commit d97a29e

Browse files
hui-zhou-apyansys-ci-botSamuelopez-ansys
authored
FIX: Return None in compute power loss if no solution available (#6106)
Co-authored-by: ring630 <@gmail.com> Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: Samuel Lopez <85613111+Samuelopez-ansys@users.noreply.github.com>
1 parent 9015401 commit d97a29e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

doc/changelog.d/6106.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Return None in compute power loss if no solution available

src/ansys/aedt/core/visualization/post/post_3dlayout.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def _compute_power_loss(self, net_filter=None, layer_filter=None, solution=None)
8484
break
8585
if dcir_solution_folder is None: # pragma: no cover
8686
self._app.logger.error(f"Solution {solution} has no result.")
87+
return
8788
else:
8889
file_net = None
8990
for i in dcir_solution_folder.iterdir():

0 commit comments

Comments
 (0)