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

FIX: Enable field plotting with discrete sweep #5683

Merged
merged 31 commits into from
Feb 7, 2025

Conversation

Devin-Crawford
Copy link
Contributor

@Devin-Crawford Devin-Crawford commented Jan 22, 2025

  • Allow sweep.name as a setup.
    • pass variations as optional keywords
  • "SaveRadFields" default is False in setup_templates.py
  • pass props to SweepHFSS()

Description

Enable plotting of solution and far-field data from a single frequency point
in a discrete sweep.

Issue linked

#5682
#5630

Checklist

  • I have tested my changes locally.
  • I have added necessary documentation or updated existing documentation.
  • I have followed the coding style guidelines of this project.
  • I have added appropriate tests (unit, integration, system).
  • I have reviewed my changes before submitting this pull request.
  • I have linked the issue or issues that are solved by the PR if any.
  • I have agreed with the Contributor License Agreement (CLA).

- Allow sweep.name as a setup.
  - pass variations as optional keywords
- "SaveRadFields" default is False in setup_templates.py
- pass props to SweepHFSS()
@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@github-actions github-actions bot added the bug Something isn't working label Jan 22, 2025
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 15 lines in your changes missing coverage. Please review.

Project coverage is 85.22%. Comparing base (c564882) to head (d9c30d3).
Report is 4 commits behind head on main.

❌ Your patch status has failed because the patch coverage (80.00%) is below the target coverage (85.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5683      +/-   ##
==========================================
- Coverage   85.22%   85.22%   -0.01%     
==========================================
  Files         156      156              
  Lines       61216    61258      +42     
==========================================
+ Hits        52172    52207      +35     
- Misses       9044     9051       +7     

Devin-Crawford and others added 6 commits January 23, 2025 04:58
- Fix loop syntax.
- Add correct logger syntax.
- Report type for far_field should be "Radiation Pattern"
- Fix error in FarField class when assigning variations.
…license-issues' into fix_HFSS_linear_step_sweep
@github-actions github-actions bot added the maintenance Package and maintenance related label Jan 26, 2025
Devin-Crawford and others added 5 commits January 26, 2025 17:56
- Add test project file Potter_Horn_242.aedtz
- Update unit test to check field plotting for discrete sweep.
- Allow sweep name to be passed to `create_report_from_configuration()`
- Revert setup_templates.py
- Correct docstring error in hfss.py
- update unit test for discrete frequency sweep in HFSS.
@Devin-Crawford Devin-Crawford marked this pull request as ready for review January 30, 2025 17:50
Devin-Crawford and others added 8 commits January 31, 2025 14:18
- update Q3D Setup behavior to be consistent with HFSS.
- Update _get_setup_from_sweep_name to avoid throwing an error.
- Use last adaptive as default sweep when nothing is passed for field plotting.
@Samuelopez-ansys Samuelopez-ansys marked this pull request as draft February 6, 2025 10:09
# Conflicts:
#	src/ansys/aedt/core/modules/solve_setup.py
#	tests/system/general/test_12_PostProcessing.py
@maxcapodi78 maxcapodi78 marked this pull request as ready for review February 6, 2025 12:03
@Samuelopez-ansys Samuelopez-ansys enabled auto-merge (squash) February 7, 2025 09:36
Allow props to be passed to the HFSS sweep setup.
Copy link
Member

@Samuelopez-ansys Samuelopez-ansys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@Samuelopez-ansys Samuelopez-ansys merged commit 66716fc into main Feb 7, 2025
42 of 43 checks passed
@Samuelopez-ansys Samuelopez-ansys deleted the fix_HFSS_linear_step_sweep branch February 7, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maintenance Package and maintenance related
Projects
None yet
4 participants