remove label_mapping; labels can be already mapped to correct layers
This commit is contained in:
parent
80f4b63008
commit
9240063070
@ -21,13 +21,10 @@ 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]],
|
||||||
label_mapping: Optional[Mapping[layer_t, layer_t]] = None,
|
|
||||||
clipper_scale_factor: int = int(2 ** 24),
|
clipper_scale_factor: int = int(2 ** 24),
|
||||||
) -> NetsInfo:
|
) -> NetsInfo:
|
||||||
|
|
||||||
metal_layers, via_layers = connectivity2layers(connectivity)
|
metal_layers, via_layers = connectivity2layers(connectivity)
|
||||||
if label_mapping is None:
|
|
||||||
label_mapping = {layer: layer for layer in metal_layers}
|
|
||||||
|
|
||||||
metal_polys = {layer: union_input_polys(scale_to_clipper(polys[layer], clipper_scale_factor))
|
metal_polys = {layer: union_input_polys(scale_to_clipper(polys[layer], clipper_scale_factor))
|
||||||
for layer in metal_layers}
|
for layer in metal_layers}
|
||||||
|
Loading…
Reference in New Issue
Block a user