Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix snapping #1685

Merged
merged 2 commits into from May 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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