Skip to content

Small fix to get_solution_data and create_report on default primary s… #1239

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

Merged
merged 1 commit into from
Jun 1, 2022
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
9 changes: 6 additions & 3 deletions pyaedt/modules/PostProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2852,8 +2852,10 @@ def create_report(
report = report_class(self, report_category, setup_sweep_name)
report.expressions = expressions
report.domain = domain
report.primary_sweep = primary_sweep_variable
report.secondary_sweep = secondary_sweep_variable
if primary_sweep_variable:
report.primary_sweep = primary_sweep_variable
if secondary_sweep_variable:
report.secondary_sweep = secondary_sweep_variable
if variations:
report.variations = variations
report.report_type = plot_type
Expand Down Expand Up @@ -3013,7 +3015,8 @@ def get_solution_data(
report = report_class(self, report_category, setup_sweep_name)
report.expressions = expressions
report.domain = domain
report.primary_sweep = primary_sweep_variable
if primary_sweep_variable:
report.primary_sweep = primary_sweep_variable
if variations:
report.variations = variations
report.sub_design_id = subdesign_id
Expand Down