From 59073b76959ff0d80e416ad95e2e6013146f6bb9 Mon Sep 17 00:00:00 2001 From: Karan Bhagat <83788850+kbhagat-ansys@users.noreply.github.com> Date: Fri, 22 Sep 2023 12:05:21 -0400 Subject: [PATCH] Correct Tstone spelling (#3623) --- _unittest/test_21_Circuit.py | 6 +++--- _unittest_solvers/test_00_analyze.py | 2 +- pyaedt/modeler/circuits/PrimitivesCircuit.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/_unittest/test_21_Circuit.py b/_unittest/test_21_Circuit.py index 78a067baf75..a71a0f6196a 100644 --- a/_unittest/test_21_Circuit.py +++ b/_unittest/test_21_Circuit.py @@ -315,18 +315,18 @@ def test_24_new_connect_components(self): def test_25_import_model(self): self.aedtapp.insert_design("Touch_import") touch = os.path.join(local_path, "example_models", test_subfolder, "SSN_ssn.s6p") - t1 = self.aedtapp.modeler.schematic.create_touchsthone_component(touch) + t1 = self.aedtapp.modeler.schematic.create_touchstone_component(touch) assert t1 assert len(t1.pins) == 6 assert t1.model_data t1.model_data.props["NexximCustomization"]["Passivity"] = 7 assert t1.model_data.update() - t2 = self.aedtapp.modeler.schematic.create_touchsthone_component(touch) + t2 = self.aedtapp.modeler.schematic.create_touchstone_component(touch) assert t2 t2.model_data.props["NexximCustomization"]["Passivity"] = 0 assert t2.model_data.update() touch = os.path.join(local_path, "example_models", test_subfolder, "y4bm_rdl_dq_byte0.s26p") - t1 = self.aedtapp.modeler.schematic.create_touchsthone_component(touch) + t1 = self.aedtapp.modeler.schematic.create_touchstone_component(touch) assert t1 assert len(t1.pins) == 26 diff --git a/_unittest_solvers/test_00_analyze.py b/_unittest_solvers/test_00_analyze.py index 5d3088bcb9a..6d0543da15a 100644 --- a/_unittest_solvers/test_00_analyze.py +++ b/_unittest_solvers/test_00_analyze.py @@ -243,7 +243,7 @@ def test_04c_3dl_analyze_setup(self): assert os.path.exists(self.hfss3dl_solve.export_mesh_stats("Setup1")) @pytest.mark.skipif(is_linux, reason="To be investigated on linux.") - def test_04d_3dl_export_touchsthone(self): + def test_04d_3dl_export_touchstone(self): filename = os.path.join(self.local_scratch.path, "touchstone.s2p") solution_name = "Setup1" sweep_name = "Sweep1" diff --git a/pyaedt/modeler/circuits/PrimitivesCircuit.py b/pyaedt/modeler/circuits/PrimitivesCircuit.py index adc1b010e6e..99efa8e5d41 100644 --- a/pyaedt/modeler/circuits/PrimitivesCircuit.py +++ b/pyaedt/modeler/circuits/PrimitivesCircuit.py @@ -628,7 +628,7 @@ def _parse_ports_name(file, num_terminal): return model_name @pyaedt_function_handler() - def create_touchsthone_component( + def create_touchstone_component( self, model_name, location=[], @@ -669,7 +669,7 @@ def create_touchsthone_component( >>> cir = Circuit() >>> comps = cir.modeler.components >>> s_parameter_path = os.path.join("your_path", "s_param_file_name.s4p") - >>> circuit_comp = comps.create_touchsthone_component(s_parameter_path, location=[0.0, 0.0], show_bitmap=False) + >>> circuit_comp = comps.create_touchstone_component(s_parameter_path, location=[0.0, 0.0], show_bitmap=False) """ xpos, ypos = self._get_location(location) id = self.create_unique_id()