Skip to content

Commit

Permalink
test #76 done
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenb-dev committed Oct 28, 2024
1 parent bb52379 commit b5f6c63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pyedb/grpc/edb_core/modeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ def unite_polygons_on_layer(self, layer_name=None, delete_padstack_gemometries=F
poly_by_nets[poly.net.name] = [poly]
else:
if poly.net.name:
poly_by_nets[net.name].append(poly)
poly_by_nets[poly.net.name].append(poly)
for net in poly_by_nets:
if net in net_names_list or not net_names_list:
for i in poly_by_nets[net]:
Expand Down
13 changes: 11 additions & 2 deletions tests/grpc/system/test_edb_nets.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import pytest

from pyedb.dotnet.edb import Edb
from pyedb.grpc.edb import EdbGrpc as Edb
from tests.conftest import desktop_version, local_path
from tests.legacy.system.conftest import test_subfolder

Expand Down Expand Up @@ -157,14 +157,16 @@ def test_nets_eligible_power_nets(self, edb_examples):

def test_nets_merge_polygon(self):
"""Convert paths from net into polygons."""
# TODO check bug #464 status
source_path = os.path.join(local_path, "example_models", test_subfolder, "test_merge_polygon.aedb")
target_path = os.path.join(self.local_scratch.path, "test_merge_polygon", "test.aedb")
self.local_scratch.copyfolder(source_path, target_path)
edbapp = Edb(target_path, desktop_version)
edbapp = Edb(target_path, desktop_version, restart_rpc_server=True)
assert edbapp.nets.merge_nets_polygons(["net1", "net2"])
edbapp.close_edb()

def test_layout_auto_parametrization_0(self):
# TODO fix parameters first
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_auto_parameters", "test.aedb")
output_path = os.path.join(self.local_scratch.path, "test_auto_parameters", "test_absolute.aedb")
Expand All @@ -186,6 +188,7 @@ def test_layout_auto_parametrization_0(self):
edbapp.close_edb()

def test_layout_auto_parametrization_1(self, edb_examples):
# TODO fix parameters first
edbapp = edb_examples.get_si_verse()
edbapp.auto_parametrize_design(
layers=True, materials=False, via_holes=False, pads=False, antipads=False, traces=False, via_offset=False
Expand All @@ -194,6 +197,7 @@ def test_layout_auto_parametrization_1(self, edb_examples):
edbapp.close_edb()

def test_layout_auto_parametrization_2(self, edb_examples):
# TODO fix parameters first
edbapp = edb_examples.get_si_verse()
edbapp.auto_parametrize_design(
layers=False,
Expand All @@ -212,6 +216,7 @@ def test_layout_auto_parametrization_2(self, edb_examples):
edbapp.close_edb()

def test_layout_auto_parametrization_3(self, edb_examples):
# TODO fix parameters first
edbapp = edb_examples.get_si_verse()
edbapp.auto_parametrize_design(
layers=False, materials=True, via_holes=False, pads=False, antipads=False, traces=False
Expand All @@ -220,6 +225,7 @@ def test_layout_auto_parametrization_3(self, edb_examples):
edbapp.close_edb()

def test_layout_auto_parametrization_4(self, edb_examples):
# TODO fix parameters first
edbapp = edb_examples.get_si_verse()
edbapp.auto_parametrize_design(
layers=False, materials=False, via_holes=True, pads=False, antipads=False, traces=False
Expand All @@ -228,6 +234,7 @@ def test_layout_auto_parametrization_4(self, edb_examples):
edbapp.close_edb()

def test_layout_auto_parametrization_5(self, edb_examples):
# TODO fix parameters first
edbapp = edb_examples.get_si_verse()
edbapp.auto_parametrize_design(
layers=False, materials=False, via_holes=False, pads=True, antipads=False, traces=False
Expand All @@ -236,6 +243,7 @@ def test_layout_auto_parametrization_5(self, edb_examples):
edbapp.close_edb()

def test_layout_auto_parametrization_6(self, edb_examples):
# TODO fix parameters first
edbapp = edb_examples.get_si_verse()
edbapp.auto_parametrize_design(
layers=False, materials=False, via_holes=False, pads=False, antipads=True, traces=False
Expand All @@ -244,6 +252,7 @@ def test_layout_auto_parametrization_6(self, edb_examples):
edbapp.close_edb()

def test_layout_auto_parametrization_7(self, edb_examples):
# TODO fix parameters first
edbapp = edb_examples.get_si_verse()
edbapp.auto_parametrize_design(
layers=False,
Expand Down

0 comments on commit b5f6c63

Please sign in to comment.