Skip to content

Commit

Permalink
Create via fence bug fix (#3961)
Browse files Browse the repository at this point in the history
* minor fix

* minor fix

* minor fix

---------

Co-authored-by: ring630 <@gmail.com>
  • Loading branch information
hui-zhou-a committed Dec 12, 2023
1 parent 6e99326 commit bd23538
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyaedt/edb_core/edb_data/primitives_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ def create_edge_port(

pyaedt_function_handler()

def create_via_fence(self, distance, gap, padstack_name):
def create_via_fence(self, distance, gap, padstack_name, net_name="GND"):
"""Create via fences on both sides of the trace.
Parameters
Expand All @@ -864,6 +864,8 @@ def create_via_fence(self, distance, gap, padstack_name):
Gap between vias.
padstack_name: str
Name of the via padstack.
net_name: str,optional
Name of the net.
Returns
-------
Expand Down Expand Up @@ -956,7 +958,7 @@ def getParalletLines(pts, distance): # pragma: no cover
center_line = self.get_center_line()
leftline, rightline = getParalletLines(center_line, distance)
for x, y in getLocations(rightline, gap) + getLocations(leftline, gap):
self._pedb.padstacks.place([x, y], padstack_name)
self._pedb.padstacks.place([x, y], padstack_name, net_name=net_name)


class EdbRectangle(EDBPrimitives, RectangleDotNet):
Expand Down

0 comments on commit bd23538

Please sign in to comment.