Skip to content

Commit fccef08

Browse files
authored
Merge pull request #165 from gdsfactory/update_gdsfactory9.16.3
update gdsfactory9.16.3
2 parents 22631bf + a284e53 commit fccef08

File tree

147 files changed

+772
-705
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+772
-705
lines changed

cspdk/si220/cband/cells/waveguides.py

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,23 @@ def bend_s(
124124

125125
@gf.cell
126126
def wire_corner(
127-
cross_section: CrossSectionSpec = "metal_routing", width: float | None = None
127+
cross_section: CrossSectionSpec = "metal_routing",
128+
width: float | None = None,
129+
radius: float | None = None,
128130
) -> gf.Component:
129131
"""Returns 45 degrees electrical corner wire.
130132
131133
Args:
132134
cross_section: spec.
133135
width: optional width. Defaults to cross_section width.
136+
radius: ignored.
134137
"""
135138
return gf.c.wire_corner(
136139
cross_section=cross_section,
137140
width=width,
138141
port_names=port_names_electrical,
139142
port_types=port_types_electrical,
140-
radius=None,
143+
radius=radius,
141144
)
142145

143146

@@ -153,9 +156,9 @@ def wire_corner45(
153156
154157
Args:
155158
cross_section: spec.
156-
radius: ignored.
159+
radius: in um.
157160
width: optional width. Defaults to cross_section width.
158-
layer: ignored.
161+
layer: optional layer.
159162
with_corner90_ports: if True, adds ports at 90 degrees.
160163
"""
161164
return gf.c.wire_corner45(
@@ -167,6 +170,26 @@ def wire_corner45(
167170
)
168171

169172

173+
@gf.cell
174+
def wire_corner45_straight(
175+
width: float | None = None,
176+
radius: float | None = None,
177+
cross_section: CrossSectionSpec = "metal_routing",
178+
) -> gf.Component:
179+
"""Returns 90 degrees electrical corner wire.
180+
181+
Args:
182+
width: of the wire.
183+
radius: of the corner. Defaults to width.
184+
cross_section: metal_routing.
185+
"""
186+
return gf.c.wire_corner45_straight(
187+
width=width,
188+
radius=radius,
189+
cross_section=cross_section,
190+
)
191+
192+
170193
####################
171194
# Metal waveguides
172195
####################
@@ -247,6 +270,6 @@ def bend_s_metal(
247270

248271
PDK.activate()
249272

250-
c = bend_s_metal()
273+
c = wire_corner45_straight()
251274
c.pprint_ports()
252275
c.show()

cspdk/si220/cband/tech.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from doroutes.bundles import add_bundle_astar
99
from gdsfactory.cross_section import (
1010
CrossSection,
11-
cross_section,
1211
port_names_electrical,
1312
port_types_electrical,
1413
)
@@ -74,7 +73,7 @@ def get_layer_stack(
7473
return LayerStack(
7574
layers=dict(
7675
core=LayerLevel(
77-
layer=LogicalLayer(layer=LAYER.WG),
76+
layer=LogicalLayer(layer=LAYER.WG) - LogicalLayer(layer=LAYER.GRA),
7877
thickness=thickness_wg,
7978
zmin=0.0,
8079
material="si",
@@ -228,7 +227,7 @@ def metal_routing(
228227
radius: float | None = None,
229228
) -> CrossSection:
230229
"""Return Metal Strip cross_section."""
231-
return cross_section(
230+
return gf.cross_section.metal1(
232231
width=width,
233232
layer=layer,
234233
radius=radius,

cspdk/si220/oband/cells/waveguides.py

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,23 @@ def bend_s(
124124

125125
@gf.cell
126126
def wire_corner(
127-
cross_section: CrossSectionSpec = "metal_routing", width: float | None = None
127+
cross_section: CrossSectionSpec = "metal_routing",
128+
width: float | None = None,
129+
radius: float | None = None,
128130
) -> gf.Component:
129131
"""Returns 45 degrees electrical corner wire.
130132
131133
Args:
132134
cross_section: spec.
133135
width: optional width. Defaults to cross_section width.
136+
radius: ignored.
134137
"""
135138
return gf.c.wire_corner(
136139
cross_section=cross_section,
137140
width=width,
138141
port_names=port_names_electrical,
139142
port_types=port_types_electrical,
140-
radius=None,
143+
radius=radius,
141144
)
142145

143146

@@ -167,6 +170,26 @@ def wire_corner45(
167170
)
168171

169172

173+
@gf.cell
174+
def wire_corner45_straight(
175+
width: float | None = None,
176+
radius: float | None = None,
177+
cross_section: CrossSectionSpec = "metal_routing",
178+
) -> gf.Component:
179+
"""Returns 90 degrees electrical corner wire.
180+
181+
Args:
182+
width: of the wire.
183+
radius: of the corner. Defaults to width.
184+
cross_section: metal_routing.
185+
"""
186+
return gf.c.wire_corner45_straight(
187+
width=width,
188+
radius=radius,
189+
cross_section=cross_section,
190+
)
191+
192+
170193
####################
171194
# Metal waveguides
172195
####################

cspdk/si220/oband/tech.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from doroutes.bundles import add_bundle_astar
99
from gdsfactory.cross_section import (
1010
CrossSection,
11-
cross_section,
1211
port_names_electrical,
1312
port_types_electrical,
1413
)
@@ -228,7 +227,7 @@ def metal_routing(
228227
radius: float | None = None,
229228
) -> CrossSection:
230229
"""Return Metal Strip cross_section."""
231-
return cross_section(
230+
return gf.cross_section.metal1(
232231
width=width,
233232
layer=layer,
234233
radius=radius,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ classifiers = [
1515
"Operating System :: OS Independent"
1616
]
1717
dependencies = [
18-
"gdsfactory~=9.14.1",
18+
"gdsfactory~=9.16.3",
1919
"doroutes>=0.2.0"
2020
]
2121
description = "CornerStone PDK"
4.38 KB
Binary file not shown.
3.25 KB
Binary file not shown.

tests/test_si220_cband.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ def activate_pdk() -> None:
3131
"add_fiber_single",
3232
"coupler_symmetric",
3333
"die_with_pads",
34+
"spiral_racetrack_heater",
3435
}
36+
3537
cell_names = cells.keys() - skip_test
3638
cell_names = [name for name in cell_names if not name.startswith("_")]
3739
dirpath = pathlib.Path(__file__).absolute().with_suffix(".gds").parent / "gds_ref_si220"

0 commit comments

Comments
 (0)