From ec5b277a4a0217048170f3cc5009ee4b1e1d9390 Mon Sep 17 00:00:00 2001 From: Hui Zhou Date: Thu, 5 Dec 2024 11:20:33 +0100 Subject: [PATCH] FIX: minor (#934) Co-authored-by: ring630 <@gmail.com> --- src/pyedb/dotnet/edb_core/layout_validation.py | 2 +- tests/legacy/system/test_edb.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyedb/dotnet/edb_core/layout_validation.py b/src/pyedb/dotnet/edb_core/layout_validation.py index cfd6fb86ac..70b489faac 100644 --- a/src/pyedb/dotnet/edb_core/layout_validation.py +++ b/src/pyedb/dotnet/edb_core/layout_validation.py @@ -272,7 +272,7 @@ def fix_self_intersections(self, net_list=None): bool """ if not net_list: - net_list = list(self._pedb.nets.keys()) + net_list = list(self._pedb.nets.nets.keys()) elif isinstance(net_list, str): net_list = [net_list] new_prims = [] diff --git a/tests/legacy/system/test_edb.py b/tests/legacy/system/test_edb.py index c468d61ad0..a38ee0e333 100644 --- a/tests/legacy/system/test_edb.py +++ b/tests/legacy/system/test_edb.py @@ -289,6 +289,7 @@ def test_create_custom_cutout_1(self): assert isinstance(edbapp.layout_validation.disjoint_nets("GND", keep_only_main_net=True), list) assert isinstance(edbapp.layout_validation.disjoint_nets("GND", clean_disjoints_less_than=0.005), list) assert edbapp.layout_validation.fix_self_intersections("PGND") + assert edbapp.layout_validation.fix_self_intersections() edbapp.close()