Skip to content

Commit 62eb0f3

Browse files
eblanco-ansyspre-commit-ci[bot]pyansys-ci-bothui-zhou-a
authored
TEST: Added missing microvia test (#6649)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: pyansys-ci-bot <[email protected]> Co-authored-by: hui-zhou-a <[email protected]>
1 parent 298b7f5 commit 62eb0f3

File tree

5 files changed

+59
-10
lines changed

5 files changed

+59
-10
lines changed

doc/changelog.d/6649.test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added missing microvia test

doc/source/User_guide/pyaedt_extensions_doc/hfss3dlayout/layout_design_toolkit.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
Post layout design
2+
==================
3+
14
This extension is a collection of layout design tools
2-
-----------------------------------------------------------------
35

46
.. image:: ../../../_static/extensions/layout_design_toolkit.png
57
:width: 800
6-
:alt: Layout Design Toolkit
8+
:alt: Post Layout Design
79

810
----------
911
Features
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
$begin 'Models'
2+
$end 'Models'

tests/system/extensions/test_post_layout_design.py

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def test_layout_design_toolkit_antipad_1(add_app, local_scratch):
8383
os.path.join(
8484
extensions_local_path,
8585
"example_models",
86-
"T45",
87-
"ANSYS-HSD_V1.aedb",
86+
"post_layout_design",
87+
"ANSYS_SVP_V1_1_SFP.aedb",
8888
),
8989
file_path,
9090
)
@@ -99,7 +99,7 @@ def test_layout_design_toolkit_antipad_1(add_app, local_scratch):
9999
# Create data object with antipad parameters
100100
data = PostLayoutDesignExtensionData(
101101
action="antipad",
102-
selections=["Via79", "Via78"],
102+
selections=["Via1138", "Via1136"],
103103
radius="1mm",
104104
race_track=True,
105105
)
@@ -119,8 +119,8 @@ def test_layout_design_toolkit_antipad_2(add_app, local_scratch):
119119
os.path.join(
120120
extensions_local_path,
121121
"example_models",
122-
"T45",
123-
"ANSYS-HSD_V1.aedb",
122+
"post_layout_design",
123+
"ANSYS_SVP_V1_1_SFP.aedb",
124124
),
125125
file_path,
126126
)
@@ -135,7 +135,7 @@ def test_layout_design_toolkit_antipad_2(add_app, local_scratch):
135135
# Create data object with antipad parameters (no racetrack)
136136
data = PostLayoutDesignExtensionData(
137137
action="antipad",
138-
selections=["Via1", "Via2"],
138+
selections=["Via1138", "Via1136"],
139139
radius="1mm",
140140
race_track=False,
141141
)
@@ -155,8 +155,8 @@ def test_layout_design_toolkit_unknown_action(add_app, local_scratch):
155155
os.path.join(
156156
extensions_local_path,
157157
"example_models",
158-
"T45",
159-
"ANSYS-HSD_V1.aedb",
158+
"post_layout_design",
159+
"ANSYS_SVP_V1_1_SFP.aedb",
160160
),
161161
file_path,
162162
)
@@ -180,3 +180,47 @@ def test_layout_design_toolkit_unknown_action(add_app, local_scratch):
180180
post_layout_design.main(data)
181181

182182
h3d.close_project()
183+
184+
185+
def test_layout_design_toolkit_microvia(add_app, local_scratch):
186+
"""Test microvia creation with conical shape."""
187+
file_path = os.path.join(local_scratch.path, "ANSYS-HSD_V1_microvia.aedb")
188+
189+
local_scratch.copyfolder(
190+
os.path.join(
191+
extensions_local_path,
192+
"example_models",
193+
"post_layout_design",
194+
"ANSYS_SVP_V1_1_SFP.aedb",
195+
),
196+
file_path,
197+
)
198+
199+
h3d = add_app(
200+
file_path,
201+
application=ansys.aedt.core.Hfss3dLayout,
202+
just_open=True,
203+
)
204+
h3d.save_project()
205+
206+
# Get valid padstack definition from the design
207+
pedb = h3d.modeler.primitives.edb
208+
available_padstacks = ["v40h20-1"]
209+
pedb.close()
210+
211+
# Skip test if no padstacks available
212+
if not available_padstacks:
213+
pytest.skip("No padstack definitions available in test model")
214+
215+
# Create data object with microvia parameters
216+
data = PostLayoutDesignExtensionData(
217+
action="microvia",
218+
selections=[available_padstacks[0]], # Use first available
219+
angle=75.0,
220+
signal_only=True,
221+
split_via=False,
222+
)
223+
224+
# Call main function
225+
result = post_layout_design.main(data)
226+
assert result is True

0 commit comments

Comments
 (0)