Skip to content

Commit

Permalink
Correct Tstone spelling (#3623)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbhagat-ansys authored Sep 22, 2023
1 parent e7a98b4 commit 59073b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions _unittest/test_21_Circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion _unittest_solvers/test_00_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions pyaedt/modeler/circuits/PrimitivesCircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[],
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 59073b7

Please sign in to comment.