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

refacto export_touchstone hfss3d #3867

Merged
merged 1 commit into from
Nov 10, 2023
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
22 changes: 21 additions & 1 deletion pyaedt/hfss3dlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,15 @@ def create_scattering(

@pyaedt_function_handler()
def export_touchstone(
self, setup_name=None, sweep_name=None, file_name=None, variations=None, variations_value=None
self,
setup_name=None,
sweep_name=None,
file_name=None,
variations=None,
variations_value=None,
renormalization=False,
impedance=None,
gamma_impedance_comments=False,
):
"""Export a Touchstone file.

Expand All @@ -797,6 +805,15 @@ def export_touchstone(
variations_value : list, optional
List of all parameter variation values. For example, ``["22cel", "100"]``.
The default is ``None``.
renormalization : bool, optional
Perform renormalization before export.
The default is ``False``.
impedance : float, optional
Real impedance value in ohm, for renormalization, if not specified considered 50 ohm.
The default is ``None``.
gamma_impedance_comments : bool, optional
Include Gamma and Impedance values in comments.
The default is ``False``.

Returns
-------
Expand All @@ -814,6 +831,9 @@ def export_touchstone(
file_name=file_name,
variations=variations,
variations_value=variations_value,
renormalization=renormalization,
impedance=impedance,
comments=gamma_impedance_comments,
)

@pyaedt_function_handler()
Expand Down
Loading