Skip to content

Commit

Permalink
Merge pull request #266 from gdsfactory/update_gdsfactory
Browse files Browse the repository at this point in the history
uping gdsfactory upper bound
  • Loading branch information
joamatab authored Dec 4, 2023
2 parents 8856ec4 + 322366f commit 2968974
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 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 Down
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

0 comments on commit 2968974

Please sign in to comment.