Skip to content

Commit 8c3f812

Browse files
authored
Merge pull request #100 from gdsfactory/update_gdsfactory9
update gdsfactory9
2 parents 7ca5d53 + f3522c7 commit 8c3f812

30 files changed

+4867
-5191
lines changed

cspdk/si220/cells/primitives.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,32 +1049,35 @@ def crossing_sc() -> gf.Component:
10491049
@gf.cell
10501050
def array(
10511051
component="pad",
1052-
spacing: tuple[float, float] = (150.0, 150.0),
10531052
columns: int = 6,
10541053
rows: int = 1,
10551054
add_ports: bool = True,
10561055
size=None,
10571056
centered: bool = False,
1057+
column_pitch: float = 150,
1058+
row_pitch: float = 150,
10581059
) -> gf.Component:
10591060
"""An array of components.
10601061
10611062
Args:
10621063
component: the component of which to create an array
1063-
spacing: the x and y spacing by which to place the component
10641064
columns: the number of components to place in the x-direction
10651065
rows: the number of components to place in the y-direction
10661066
add_ports: add ports to the component
10671067
size: Optional x, y size. Overrides columns and rows.
10681068
centered: center the array around the origin.
1069+
row_pitch: the pitch between rows.
1070+
column_pitch: the pitch between columns.
10691071
"""
10701072
return gf.c.array(
10711073
component=component,
1072-
spacing=spacing,
10731074
columns=columns,
10741075
rows=rows,
10751076
size=size,
10761077
centered=centered,
10771078
add_ports=add_ports,
1079+
column_pitch=column_pitch,
1080+
row_pitch=row_pitch,
10781081
)
10791082

10801083

@@ -1083,5 +1086,5 @@ def array(
10831086

10841087

10851088
if __name__ == "__main__":
1086-
c = grating_coupler_array()
1089+
c = array()
10871090
c.show()

cspdk/si500/cells.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -611,32 +611,35 @@ def die(cross_section="xs_rc") -> gf.Component:
611611
@gf.cell
612612
def array(
613613
component="pad",
614-
spacing: tuple[float, float] = (150.0, 150.0),
615614
columns: int = 6,
616615
rows: int = 1,
617616
add_ports: bool = True,
618617
size=None,
619618
centered: bool = False,
619+
column_pitch: float = 150,
620+
row_pitch: float = 150,
620621
) -> gf.Component:
621622
"""An array of components.
622623
623624
Args:
624625
component: the component of which to create an array
625-
spacing: the x and y spacing by which to place the component
626626
columns: the number of components to place in the x-direction
627627
rows: the number of components to place in the y-direction
628628
add_ports: add ports to the component
629629
size: Optional x, y size. Overrides columns and rows.
630630
centered: center the array around the origin.
631+
row_pitch: the pitch between rows.
632+
column_pitch: the pitch between columns.
631633
"""
632634
return gf.c.array(
633635
component=component,
634-
spacing=spacing,
635636
columns=columns,
636637
rows=rows,
637638
size=size,
638639
centered=centered,
639640
add_ports=add_ports,
641+
column_pitch=column_pitch,
642+
row_pitch=row_pitch,
640643
)
641644

642645

cspdk/sin300/cells.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,30 +618,33 @@ def die(cross_section="xs_nc") -> Component:
618618
@gf.cell
619619
def array(
620620
component="pad",
621-
spacing: tuple[float, float] = (150.0, 150.0),
622621
columns: int = 6,
623622
rows: int = 1,
624623
add_ports: bool = True,
625624
size=None,
626625
centered: bool = False,
627-
) -> Component:
626+
column_pitch: float = 150,
627+
row_pitch: float = 150,
628+
) -> gf.Component:
628629
"""An array of components.
629630
630631
Args:
631632
component: the component of which to create an array
632-
spacing: the x and y spacing by which to place the component
633633
columns: the number of components to place in the x-direction
634634
rows: the number of components to place in the y-direction
635635
add_ports: add ports to the component
636636
size: Optional x, y size. Overrides columns and rows.
637637
centered: center the array around the origin.
638+
row_pitch: the pitch between rows.
639+
column_pitch: the pitch between columns.
638640
"""
639641
return gf.c.array(
640642
component=component,
641-
spacing=spacing,
642643
columns=columns,
643644
rows=rows,
644645
size=size,
645646
centered=centered,
646647
add_ports=add_ports,
648+
column_pitch=column_pitch,
649+
row_pitch=row_pitch,
647650
)

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ classifiers = [
1515
"Operating System :: OS Independent"
1616
]
1717
dependencies = [
18-
"gdsfactory~=8.32.0",
18+
"gdsfactory~=9.0.0",
1919
"gplugins[sax]>=1,<2"
2020
]
2121
description = "CornerStone PDK"
2222
keywords = ["python"]
2323
license = {file = "LICENSE"}
2424
name = "cspdk"
2525
readme = "README.md"
26-
requires-python = ">=3.10"
26+
requires-python = ">=3.11,<3.14"
2727
version = "0.13.0"
2828

2929
[project.optional-dependencies]

tests/gds_ref_si220/bend_euler_rc.gds

1.82 KB
Binary file not shown.

tests/gds_ref_si220/bend_euler_ro.gds

1.82 KB
Binary file not shown.

tests/gds_ref_si220/die_rc.gds

1.37 KB
Binary file not shown.

tests/gds_ref_si220/die_ro.gds

110 Bytes
Binary file not shown.

tests/gds_ref_si220/mzi_rc.gds

1.77 KB
Binary file not shown.

tests/gds_ref_si220/mzi_ro.gds

1.77 KB
Binary file not shown.

0 commit comments

Comments
 (0)