Skip to content

Commit

Permalink
Improve variations in create_report (#3924)
Browse files Browse the repository at this point in the history
* fix variation in create report

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
gmalinve and pre-commit-ci[bot] authored Nov 29, 2023
1 parent 8f38bd0 commit 62b6750
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyaedt/modules/PostProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,13 @@ def create_report(
]
report.expressions = expressions
report.domain = domain
if not variations:
if not variations and domain == "Sweep":
variations = self._app.available_variations.nominal_w_values_dict
if variations:
variations["Freq"] = "All"
else:
variations = {"Freq": ["All"]}
elif not variations and domain != "Sweep":
variations = self._app.available_variations.nominal_w_values_dict
if primary_sweep_variable:
report.primary_sweep = primary_sweep_variable
Expand Down

0 comments on commit 62b6750

Please sign in to comment.