Skip to content

Commit

Permalink
Merge pull request #1685 from gdsfactory/fix_snapping
Browse files Browse the repository at this point in the history
fix snapping
  • Loading branch information
joamatab committed May 22, 2023
2 parents ab6e7d0 + 8829142 commit b86018b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions gdsfactory/components/straight.py
Expand Up @@ -4,7 +4,6 @@
import gdsfactory as gf
from gdsfactory.add_padding import get_padding_points
from gdsfactory.component import Component
from gdsfactory.snap import snap_to_grid
from gdsfactory.typings import CrossSectionSpec


Expand All @@ -30,7 +29,6 @@ def straight(
o1 -------------- o2
length
"""
length = snap_to_grid(length)
p = gf.path.straight(length=length, npoints=npoints)
x = gf.get_cross_section(cross_section, **kwargs)

Expand Down
Expand Up @@ -2,7 +2,7 @@ name: spiral_racetrack_fixed_length
ports:
o1:
center:
- -20.249
- -20.25
- 20.0
layer:
- 1
Expand Down Expand Up @@ -59,11 +59,11 @@ settings:
with_inner_ports: false
function_name: spiral_racetrack_fixed_length
info:
length: 999.9950000000001
length: 999.9992836540061
spiral_center:
- 35.231
- -2.5
straight_length: 65.46149936
straight_length: 65.46153546
info_version: 2
module: gdsfactory.components.spiral_heater
name: spiral_racetrack_fixed_length
Expand Up @@ -36,7 +36,7 @@ ports:
width: 10.0
opt_te_1530_15-straight_aa0e8b9c-loopback2:
center:
- -127.66800000000002
- -127.66799999999999
- -63.22299999999998
layer:
- 1
Expand Down

0 comments on commit b86018b

Please sign in to comment.