Skip to content

Commit

Permalink
refacto export_touchstone hfss3d (#3867)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmalinve authored Nov 10, 2023
1 parent 7c9af4b commit 4b63b48
Showing 1 changed file with 21 additions and 1 deletion.
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

0 comments on commit 4b63b48

Please sign in to comment.