You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A more pythonic implementation to assign properties to a frequency sweep using the add_sweep() method would be to pass keywords according to allowed keys in the native API. Keys from the templates in core\modules\setup_templates.py could be used to parse the **kwargs. For example, the keywords in SweepHfss3D could be used to check and parse keyword arguments passed to add_sweep()
Note that this can be updated without breaking the current behavior.
Devin-Crawford
changed the title
Pass kwargs to add_sweep rather than passing a dict with the "props" keyword.
Pass kwargs to add_frequency_sweep rather than passing a dict with the "props" keyword.
Jan 7, 2025
Description of the current limitations
A more pythonic implementation to assign properties to a frequency sweep using the
add_sweep()
method would be to pass keywords according to allowed keys in the native API. Keys from the templates incore\modules\setup_templates.py
could be used to parse the**kwargs
. For example, the keywords inSweepHfss3D
could be used to check and parse keyword arguments passed toadd_sweep()
Code sample expected
Behavior would be like
instead of
Useful links and references
https://github.com/ansys/pyaedt/blob/main/src/ansys/aedt/core/modules/solve_sweeps.py
https://github.com/ansys/pyaedt/blob/main/src/ansys/aedt/core/modules/setup_templates.py
The text was updated successfully, but these errors were encountered: