rename check_connectivity to trace_connectivity

This commit is contained in:
Jan Petykiewicz 2022-03-29 21:28:35 -07:00
parent 718dc2a9ac
commit 2245629466
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ cells, props = oasis.readfile('connectivity.oas')
topcell = cells['top'] topcell = cells['top']
polys, labels = snarl.interfaces.masque.read_topcell(topcell, connectivity) 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('\nFinal nets:')
print([kk for kk in nets_info.nets if isinstance(kk.name, str)]) print([kk for kk in nets_info.nets if isinstance(kk.name, str)])

View File

@ -1,7 +1,7 @@
""" """
TODO: ALL DOCSTRINGS TODO: ALL DOCSTRINGS
""" """
from .main import check_connectivity from .main import trace_connectivity
from . import interfaces from . import interfaces

View File

@ -17,7 +17,7 @@ from .utils import connectivity2layers
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
def check_connectivity( def trace_connectivity(
polys: Mapping[layer_t, Sequence[ArrayLike]], polys: Mapping[layer_t, Sequence[ArrayLike]],
labels: Mapping[layer_t, Sequence[Tuple[float, float, str]]], labels: Mapping[layer_t, Sequence[Tuple[float, float, str]]],
connectivity: Sequence[Tuple[layer_t, Optional[layer_t], layer_t]], connectivity: Sequence[Tuple[layer_t, Optional[layer_t], layer_t]],