Skip to content

Commit cf1218d

Browse files
committed
FIX: Fix pirmitive doc change more Value to ValueLike
1 parent dc47f04 commit cf1218d

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

src/ansys/edb/core/primitive/padstack_instance.py

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
if TYPE_CHECKING:
77
from ansys.edb.core.net.net import Net
88
from ansys.edb.core.layout.layout import Layout
9+
from ansys.edb.core.typing import ValueLike
910

1011
from enum import Enum
1112

@@ -31,7 +32,7 @@ class BackDrillType(Enum):
3132

3233

3334
class PadstackInstance(conn_obj.ConnObj):
34-
"""Representis a padstack instance object."""
35+
"""Represents a padstack instance object."""
3536

3637
__stub: padstack_instance_pb2_grpc.PadstackInstanceServiceStub = StubAccessor(
3738
StubType.padstack_instance
@@ -46,9 +47,9 @@ def create(
4647
net: Net,
4748
name: str,
4849
padstack_def: PadstackDef,
49-
position_x: Value,
50-
position_y: Value,
51-
rotation: Value,
50+
position_x: ValueLike,
51+
position_y: ValueLike,
52+
rotation: ValueLike,
5253
top_layer: Layer,
5354
bottom_layer: Layer,
5455
solder_ball_layer: Layer | None = None,
@@ -66,11 +67,11 @@ def create(
6667
Name of the padstack instance.
6768
padstack_def : .PadstackDef
6869
Padstack definition of the padstack instance.
69-
position_x : .Value
70+
position_x : :term:`ValueLike`
7071
Position x of the padstack instance.
71-
position_y : .Value
72+
position_y : :term:`ValueLike`
7273
Position y of the padstack instance.
73-
rotation : .Value
74+
rotation : :term:`ValueLike`
7475
Rotation of the padstack instance.
7576
top_layer : .Layer
7677
Top layer of the padstack instance.
@@ -146,16 +147,16 @@ def get_position_and_rotation(self) -> tuple[Value, Value, Value]:
146147
Value(params.rotation),
147148
)
148149

149-
def set_position_and_rotation(self, x: Value, y: Value, rotation: Value):
150+
def set_position_and_rotation(self, x: ValueLike, y: ValueLike, rotation: ValueLike):
150151
"""Set the position and rotation of the padstack instance.
151152
152153
Parameters
153154
----------
154-
x : .Value
155+
x : :term:`ValueLike`
155156
x : X coordinate.
156-
y : .Value
157+
y : :term:`ValueLike`
157158
y : Y coordinate.
158-
rotation : .Value
159+
rotation : :term:`ValueLike`
159160
Rotation in radians.
160161
"""
161162
self.__stub.SetPositionAndRotation(
@@ -252,14 +253,14 @@ def get_hole_overrides(self) -> tuple[bool, Value]:
252253
Value(params.hole_override),
253254
)
254255

255-
def set_hole_overrides(self, is_hole_override: bool, hole_override: Value):
256+
def set_hole_overrides(self, is_hole_override: bool, hole_override: ValueLike):
256257
"""Set the hole overrides of the padstack instance.
257258
258259
Parameters
259260
----------
260261
is_hole_override : bool
261262
Whether the padstack instance is a hole override.
262-
hole_override : .Value
263+
hole_override : :term:`ValueLike`
263264
Hole override diameter of the padstack instance.
264265
"""
265266
self.__stub.SetHoleOverrides(
@@ -339,7 +340,7 @@ def get_back_drill_by_layer(self, from_bottom: bool) -> tuple[Layer, Value, Valu
339340
)
340341

341342
def set_back_drill_by_layer(
342-
self, drill_to_layer: Layer, offset: Value, diameter: Value, from_bottom: bool
343+
self, drill_to_layer: Layer, offset: ValueLike, diameter: ValueLike, from_bottom: bool
343344
):
344345
"""Set the back drill by the layer.
345346
@@ -349,9 +350,9 @@ def set_back_drill_by_layer(
349350
Layer to drill to. If drilling from the top, the drill stops at the upper
350351
elevation of the layer. If drilling from the bottom, the drill stops at
351352
the lower elevation of the layer.
352-
offset : .Value
353+
offset : :term:`ValueLike`
353354
Layer offset (or depth if the layer is empty).
354-
diameter : .Value
355+
diameter : :term:`ValueLike`
355356
Drilling diameter.
356357
from_bottom : bool
357358
Whether to set the back drill type from the bottom.
@@ -390,14 +391,14 @@ def get_back_drill_by_depth(self, from_bottom: bool) -> tuple[Value, Value]:
390391
)
391392
return Value(params.drill_depth), Value(params.diameter)
392393

393-
def set_back_drill_by_depth(self, drill_depth: Value, diameter: Value, from_bottom: bool):
394+
def set_back_drill_by_depth(self, drill_depth: ValueLike, diameter: ValueLike, from_bottom: bool):
394395
"""Set the back drill type by depth.
395396
396397
Parameters
397398
----------
398-
drill_depth : .Value
399+
drill_depth : :term:`ValueLike`
399400
Drilling depth, which may not align with the layer.
400-
diameter : :.Value
401+
diameter : :term:`ValueLike`
401402
Drilling diameter.
402403
from_bottom : bool
403404
Whether to set the back drill type from the bottom.

0 commit comments

Comments
 (0)