From 62b6750a6b6e803cefa15c87e80329b1cb929f36 Mon Sep 17 00:00:00 2001 From: gmalinve <103059376+gmalinve@users.noreply.github.com> Date: Wed, 29 Nov 2023 15:52:23 +0100 Subject: [PATCH] Improve variations in create_report (#3924) * 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> --- pyaedt/modules/PostProcessor.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyaedt/modules/PostProcessor.py b/pyaedt/modules/PostProcessor.py index e8f51209f24..8d69c99dc8d 100644 --- a/pyaedt/modules/PostProcessor.py +++ b/pyaedt/modules/PostProcessor.py @@ -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