Skip to content

Commit

Permalink
use dbu
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecea committed Aug 15, 2024
1 parent fccac25 commit 0b4380e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gplugins/common/utils/get_component_with_net_layers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import copy

import gdsfactory as gf
from gdsfactory.technology import LogicalLayer
from gdsfactory.typings import Component, LayerStack

Expand Down Expand Up @@ -74,7 +75,7 @@ def get_component_with_net_layers(
net_component = net_component.remove_layers(layers=(port.layer,))
for polygon in polygons:
# If polygon belongs to port, create a unique new layer, and add the polygon to it
if polygon.sized(0.005).inside(port.center):
if polygon.sized(3 * gf.kcl.dbu).inside(port.center):
# if gdstk.inside(
# [port.center],
# gdstk.offset(gdstk.Polygon(polygon), gf.get_active_pdk().grid_size),
Expand Down

0 comments on commit 0b4380e

Please sign in to comment.