Skip to content

Commit

Permalink
test #85 done
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenb-dev committed Oct 29, 2024
1 parent a8a4608 commit 01ef4f4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/grpc/system/test_edb_padstacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,13 +399,11 @@ def test_hole(self, edb_examples):
assert edbapp.padstacks.definitions["v35h15"].hole_diameter == 0.00016
edbapp.close()

def test_padstack_instances_rtree_index(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_padstack_instances_rtree_index(self, edb_examples):
# Done
edbapp = edb_examples.get_si_verse()
index = edbapp.padstacks.get_padstack_instances_rtree_index()
assert index.bounds == [-0.0137849991, -0.00225000058, 0.14800000118, 0.07799999894]
assert index.bounds == [-0.013785, -0.00225, 0.148, 0.078]
stats = edbapp.get_statistics()
bbox = (0.0, 0.0, stats.layout_size[0], stats.layout_size[1])
test = list(index.intersection(bbox))
Expand Down

0 comments on commit 01ef4f4

Please sign in to comment.