Skip to content

Commit

Permalink
center cross in pad array
Browse files Browse the repository at this point in the history
  • Loading branch information
simbilod committed Apr 19, 2023
1 parent 3b332cd commit 6199c85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gdsfactory/components/greek_cross.py
Expand Up @@ -115,7 +115,9 @@ def greek_cross_with_pads(

# Cross
cross_ref = c << gf.get_component(greek_cross_component)
cross_ref.x = 2 * pad_spacing
cross_ref.x = (

Check warning on line 118 in gdsfactory/components/greek_cross.py

View check run for this annotation

Codecov / codecov/patch

gdsfactory/components/greek_cross.py#L117-L118

Added lines #L117 - L118 were not covered by tests
2 * pad_spacing - (pad_spacing - gf.get_component(pad).info["size"][0]) / 2
)

cross_pad_via_port_pairs = {

Check warning on line 122 in gdsfactory/components/greek_cross.py

View check run for this annotation

Codecov / codecov/patch

gdsfactory/components/greek_cross.py#L122

Added line #L122 was not covered by tests
0: ("e1", "e2"),
Expand Down

0 comments on commit 6199c85

Please sign in to comment.