[BuildLibrary / OverlayLibrary] further simplifications 2
This commit is contained in:
parent
1723212424
commit
1b83034b7e
3 changed files with 26 additions and 89 deletions
|
|
@ -32,7 +32,7 @@ from numpy.typing import NDArray
|
|||
from . import gdsii
|
||||
from .utils import tmpfile
|
||||
from ..error import LibraryError
|
||||
from ..library import ILibrary, ILibraryView, LibraryView, _plan_source_names, dangling_mode_t
|
||||
from ..library import ILibrary, ILibraryView, LibraryView, _plan_source_names, _source_rename_map, dangling_mode_t
|
||||
from ..pattern import Pattern, map_targets
|
||||
from ..utils import apply_transforms
|
||||
from ..utils.ports2data import data_to_ports
|
||||
|
|
@ -319,7 +319,7 @@ class OverlayLibrary(ILibrary):
|
|||
source_order = list(view.source_order())
|
||||
child_graph = view.child_graph(dangling='include')
|
||||
|
||||
source_to_visible, rename_map = _plan_source_names(
|
||||
source_to_visible = _plan_source_names(
|
||||
self,
|
||||
source_order,
|
||||
self._entries,
|
||||
|
|
@ -343,7 +343,7 @@ class OverlayLibrary(ILibrary):
|
|||
if visible_name not in self._order:
|
||||
self._order.append(visible_name)
|
||||
|
||||
return rename_map
|
||||
return _source_rename_map(source_to_visible)
|
||||
|
||||
def rename(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue