From 2245629466edb9ead7ed5d1f0c3580b48d300d00 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Tue, 29 Mar 2022 21:28:35 -0700 Subject: [PATCH] rename check_connectivity to trace_connectivity --- example.py | 2 +- snarl/__init__.py | 2 +- snarl/main.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example.py b/example.py index 8a6be52..f21dd0f 100644 --- a/example.py +++ b/example.py @@ -18,7 +18,7 @@ cells, props = oasis.readfile('connectivity.oas') topcell = cells['top'] polys, labels = snarl.interfaces.masque.read_topcell(topcell, connectivity) -nets_info = snarl.check_connectivity(polys, labels, connectivity) +nets_info = snarl.trace_connectivity(polys, labels, connectivity) print('\nFinal nets:') print([kk for kk in nets_info.nets if isinstance(kk.name, str)]) diff --git a/snarl/__init__.py b/snarl/__init__.py index b0b8239..65c242f 100644 --- a/snarl/__init__.py +++ b/snarl/__init__.py @@ -1,7 +1,7 @@ """ TODO: ALL DOCSTRINGS """ -from .main import check_connectivity +from .main import trace_connectivity from . import interfaces diff --git a/snarl/main.py b/snarl/main.py index a2bcfe8..c082406 100644 --- a/snarl/main.py +++ b/snarl/main.py @@ -17,7 +17,7 @@ from .utils import connectivity2layers logger = logging.getLogger(__name__) -def check_connectivity( +def trace_connectivity( polys: Mapping[layer_t, Sequence[ArrayLike]], labels: Mapping[layer_t, Sequence[Tuple[float, float, str]]], connectivity: Sequence[Tuple[layer_t, Optional[layer_t], layer_t]],