Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve variations in create_report #3924

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading