Skip to content

Commit 3a930bf

Browse files
authored
Merge pull request #89 from gdsfactory/improve_wire_corner
better wire_corner
2 parents 7033315 + 451c405 commit 3a930bf

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed

cspdk/si220/cells/primitives.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ def straight(
4848

4949

5050
@gf.cell
51-
def wire_corner() -> gf.Component:
51+
def wire_corner(cross_section="metal_routing", **kwargs) -> gf.Component:
5252
"""A wire corner.
5353
5454
A wire corner is a bend for electrical routes.
5555
"""
56-
return gf.components.wire_corner(cross_section="metal_routing")
56+
return gf.components.wire_corner(cross_section=cross_section, **kwargs)
5757

5858

5959
@gf.cell

cspdk/si500/cells.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ def straight(
4444

4545

4646
@gf.cell
47-
def wire_corner() -> gf.Component:
47+
def wire_corner(cross_section="metal_routing", **kwargs) -> gf.Component:
4848
"""A wire corner.
4949
5050
A wire corner is a bend for electrical routes.
5151
"""
52-
return gf.components.wire_corner(cross_section="metal_routing")
52+
return gf.components.wire_corner(cross_section=cross_section, **kwargs)
5353

5454

5555
@gf.cell

cspdk/sin300/cells.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ def straight(
4444

4545

4646
@gf.cell
47-
def wire_corner() -> Component:
47+
def wire_corner(cross_section="metal_routing", **kwargs) -> gf.Component:
4848
"""A wire corner.
4949
5050
A wire corner is a bend for electrical routes.
5151
"""
52-
return gf.components.wire_corner(cross_section="metal_routing")
52+
return gf.components.wire_corner(cross_section=cross_section, **kwargs)
5353

5454

5555
@gf.cell
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
instances: {}
2-
name: wire_corner
2+
name: wire_corner_CSmetal_routing
33
nets: []
44
placements: {}
55
ports: {}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
info:
22
dy: 10
33
length: 10
4-
name: wire_corner
5-
settings: {}
4+
name: wire_corner_CSmetal_routing
5+
settings:
6+
cross_section: metal_routing
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
instances: {}
2-
name: wire_corner
2+
name: wire_corner_CSmetal_routing
33
nets: []
44
placements: {}
55
ports: {}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
info:
22
dy: 10
33
length: 10
4-
name: wire_corner
5-
settings: {}
4+
name: wire_corner_CSmetal_routing
5+
settings:
6+
cross_section: metal_routing

0 commit comments

Comments
 (0)