Skip to content

Commit 99f1914

Browse files
authored
Merge pull request #99 from gdsfactory/fix_loopback
add radius_loopback
2 parents 9315515 + e09b7f6 commit 99f1914

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

cspdk/si220/cells/containers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def add_fiber_array_sc(
2323
component_name: str | None = None,
2424
cross_section: CrossSectionSpec = "xs_sc",
2525
gc_rotation: float = -90,
26+
radius_loopback: float = 10,
2627
**kwargs,
2728
) -> Component:
2829
"""Returns component with south routes and grating_couplers.
@@ -36,6 +37,7 @@ def add_fiber_array_sc(
3637
component_name: optional for the label.
3738
cross_section: cross_section function.
3839
gc_rotation: fiber coupler rotation in degrees. Defaults to -90.
40+
radius_loopback: optional radius of the loopback bend. Defaults to the cross_section.
3941
kwargs: additional arguments.
4042
4143
Keyword Args:
@@ -58,7 +60,6 @@ def add_fiber_array_sc(
5860
input_port_indexes: to connect.
5961
pitch: in um.
6062
radius: optional radius of the bend. Defaults to the cross_section.
61-
radius_loopback: optional radius of the loopback bend. Defaults to the cross_section.
6263
route_backwards: route from component to grating coupler or vice-versa.
6364
6465
.. plot::
@@ -83,6 +84,7 @@ def add_fiber_array_sc(
8384
gc_rotation=gc_rotation,
8485
component_name=component_name,
8586
cross_section=cross_section,
87+
radius_loopback=radius_loopback,
8688
**kwargs,
8789
)
8890

@@ -344,7 +346,7 @@ def pack_doe_grid(
344346

345347
PDK.activate()
346348

347-
c = add_fiber_single_sc()
349+
c = add_fiber_array_sc()
348350
# c =gf.get_component(gc_sc)
349351
# c = pack_doe()
350352
c.pprint_ports()

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~=8.31.0",
18+
"gdsfactory~=8.32.0",
1919
"gplugins[sax]>=1,<2"
2020
]
2121
description = "CornerStone PDK"

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)