From 4b63b48561d2cb18df22a5877937908a66676285 Mon Sep 17 00:00:00 2001 From: gmalinve <103059376+gmalinve@users.noreply.github.com> Date: Fri, 10 Nov 2023 19:16:19 +0100 Subject: [PATCH] refacto export_touchstone hfss3d (#3867) --- pyaedt/hfss3dlayout.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/pyaedt/hfss3dlayout.py b/pyaedt/hfss3dlayout.py index 96b9860b64a..edbb836c5af 100644 --- a/pyaedt/hfss3dlayout.py +++ b/pyaedt/hfss3dlayout.py @@ -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. @@ -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 ------- @@ -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()