-
Notifications
You must be signed in to change notification settings - Fork 134
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: HFSS Setup error #5618 #5619
Conversation
\ansys\aedt\core\modules\setup_templates.py - Change autosweep default from "LinearStep" to "LinearCount" to match the default behavior of HFSS. - Use "RangeCount": 501 \ansys\aedt\core\hfss.py - Update docstring errors for create_setup() \ansys\aedt\core\application.py - Change default setup from 1 to 0 for HFSS where appropriate. \ansys\aedt\core\application\analysis.py - Correct an error that would always use an auto-generated name for the setup.
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5619 +/- ##
==========================================
- Coverage 85.27% 85.26% -0.01%
==========================================
Files 152 152
Lines 60939 60939
==========================================
- Hits 51963 51960 -3
- Misses 8976 8979 +3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
- The docstring for Hfss.create_setup had an error. The text "HFSSDrivenDefault" is not a valid argument for setup_type. - Updated test_02_hfss_export_results by adding the argument setup_type which was not present previously. - Added a few more assert statements to that test. - Added the solve frequency as a variable that is retrieved from the setup since this is re-used multiple times. - Added a test for HFSS setups in test_20_HFSS.py
For more information, see https://pre-commit.ci
- Replace deprecated create_discrete_sweep() with create_frequency_sweep()
- choke_designer.py uses the "HFSSDriven" setup type. This must must be passed explicitly with the "setup_type" argument.
…o fix/5618_hfss_default_setup
Some changes were made inadvertently.
A 2nd attempt to create a setup name with the same name would cause an error in AEDT. Now check if the setup exists and assign a unique name if the name is used..
@Devin-Crawford I think the default setup should be 1, because Auto setup corresponds to 0, and Auto setup is less used than the "Advanced" setup. |
Resolve #5618
Description
\ansys\aedt\core\modules\setup_templates.py
\ansys\aedt\core\hfss.py
\ansys\aedt\core\application.py
\ansys\aedt\core\application\analysis.py
Issue linked
Close #5618
Checklist