Skip to content

Commit

Permalink
test #86 done
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenb-dev committed Oct 29, 2024
1 parent 01ef4f4 commit 345d3d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/pyedb/grpc/edb_core/padstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ def create(
pad_shape = GrpcPadGeometryType.PADGEOMTYPE_RECTANGLE
elif pad_shape == "Polygon":
if isinstance(pad_polygon, list):
pad_array = [GrpcPolygonData(pad_polygon)]
pad_array = GrpcPolygonData(points=pad_polygon)
elif isinstance(pad_polygon, GrpcPolygonData):
pad_array = pad_polygon
if antipad_shape == "Bullet": # pragma no cover
Expand All @@ -883,7 +883,7 @@ def create(
antipad_shape = GrpcPadGeometryType.PADGEOMTYPE_RECTANGLE
elif antipad_shape == "Polygon":
if isinstance(antipad_polygon, list):
antipad_array = GrpcPolygonData(antipad_polygon)
antipad_array = GrpcPolygonData(points=antipad_polygon)
elif isinstance(antipad_polygon, GrpcPolygonData):
antipad_array = antipad_polygon
else:
Expand Down
8 changes: 3 additions & 5 deletions tests/grpc/system/test_edb_padstacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,9 @@ def test_padstack_instances_rtree_index(self, edb_examples):
assert len(test) == 194
edbapp.close()

def test_polygon_based_padsatck(self):
source_path = os.path.join(local_path, "example_models", test_subfolder, "ANSYS-HSD_V1.aedb")
target_path = os.path.join(self.local_scratch.path, "test_padstack_rtree_index", "ANSYS-HSD_V1.aedb")
self.local_scratch.copyfolder(source_path, target_path)
edbapp = Edb(target_path, edbversion=desktop_version)
def test_polygon_based_padstack(self, edb_examples):
# Done
edbapp = edb_examples.get_si_verse()
polygon_data = edbapp.modeler.paths[0].polygon_data
edbapp.padstacks.create(
padstackname="test",
Expand Down

0 comments on commit 345d3d9

Please sign in to comment.