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

uping gdsfactory upper bound #266

Merged
merged 3 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
16 changes: 11 additions & 5 deletions docs/notebooks/workflow_2_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,16 @@ def ring(

gaps = [210 * nm, 220 * nm, 230 * nm]
rings_heater = [
gf.components.ring_single_heater(gap=0.2, radius=10, length_x=4) for gap in gaps
gf.components.ring_single_heater(
gap=0.2, radius=10, length_x=4, name=f"ring_heater_{int(gap*1e3)}"
)
for gap in gaps
]
rings_heater_with_grating_couplers = [
gf.routing.add_fiber_array(ring) for ring in rings_heater
]
rings_with_pads = [
gf.routing.add_electrical_pads_top(ring)
gf.routing.add_electrical_pads_top(ring, name=f"{ring.name}_pads")
for ring in rings_heater_with_grating_couplers
]

Expand All @@ -200,7 +203,7 @@ def reticle(size=(1000, 1000)):
)
m.xmin = r.xmax + 10
m.ymin = r.ymin
c << gf.components.seal_ring(c.bbox)
_ = c << gf.components.seal_ring(c.bbox)
return c


Expand All @@ -214,8 +217,9 @@ def reticle(size=(1000, 1000)):

gaps = [210 * nm, 220 * nm, 230 * nm]
rings = gf.grid([ring_te(gap=gap, decorator=gf.labels.add_label_json) for gap in gaps])

rings_heater = [
gf.components.ring_single_heater(gap=0.2, radius=10, length_x=4) for gap in gaps
gf.components.ring_single_heater(gap=gap, radius=10, length_x=4) for gap in gaps
]
rings_heater_with_grating_couplers = [
gf.routing.add_fiber_array(ring) for ring in rings_heater
Expand All @@ -235,7 +239,7 @@ def reticle(size=(1000, 1000)):
m = c << gf.pack(rings_with_pads)[0]
m.xmin = r.xmax + 10
m.ymin = r.ymin
c << gf.components.seal_ring(c.bbox)
_ = c << gf.components.seal_ring(c.bbox)
return c


Expand All @@ -257,3 +261,5 @@ def reticle(size=(1000, 1000)):
gf.labels.write_labels.write_labels_klayout(
gdspath=gdspath, layer_label="TEXT", prefix=""
)

# %%
nikosavola marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
"Operating System :: OS Independent"
]
dependencies = [
"gdsfactory[cad]>=7.8.1,<7.9",
"gdsfactory[cad]>=7.8.1",
"pint"
]
description = "gdsfactory plugins"
Expand Down