-
Notifications
You must be signed in to change notification settings - Fork 133
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
base: main
Are you sure you want to change the base?
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% 43.49% -41.79%
===========================================
Files 152 152
Lines 60990 60991 +1
===========================================
- Hits 52011 26529 -25482
- Misses 8979 34462 +25483 |
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..
@@ -77,7 +77,19 @@ def test_01_save(self): | |||
assert os.path.exists(test_project) | |||
|
|||
def test_01A_check_setup(self): | |||
assert self.aedtapp.active_setup is None | |||
# Use the built-in Waveguide Tee example. | |||
filter_fn = os.path.join("Examples", "HFSS", "Filters", "ceramic_monoblock_MMDS_Band.aedt") |
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.
@Devin-Crawford I think this is dangerous because the name of the example could change from different versions. I would create a dummy project if this is really needed, and add it to PyAEDT.
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