From 345d3d99f9b4789222627490ef3472318339ce46 Mon Sep 17 00:00:00 2001 From: svandenb-dev Date: Tue, 29 Oct 2024 10:31:18 +0100 Subject: [PATCH] test #86 done --- src/pyedb/grpc/edb_core/padstack.py | 4 ++-- tests/grpc/system/test_edb_padstacks.py | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/pyedb/grpc/edb_core/padstack.py b/src/pyedb/grpc/edb_core/padstack.py index 6a9f8e4b43..a529adf977 100644 --- a/src/pyedb/grpc/edb_core/padstack.py +++ b/src/pyedb/grpc/edb_core/padstack.py @@ -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 @@ -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: diff --git a/tests/grpc/system/test_edb_padstacks.py b/tests/grpc/system/test_edb_padstacks.py index 3555a1770f..94ad8fb398 100644 --- a/tests/grpc/system/test_edb_padstacks.py +++ b/tests/grpc/system/test_edb_padstacks.py @@ -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",