Skip to content

Commit

Permalink
Merge pull request #2739 from gdsfactory/auto_rename_ports_c
Browse files Browse the repository at this point in the history
auto_rename_ports for C
  • Loading branch information
joamatab committed May 14, 2024
2 parents 6b69f71 + aa831e5 commit a183fea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gdsfactory/components/C.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def C(
port_settings = dict(width=width, orientation=0, layer=layer, port_type=port_type)
c.add_port(name="o1", center=(s1, s2), **port_settings)
c.add_port(name="o2", center=(s1, 0), **port_settings)
c.auto_rename_ports()
return c


Expand Down

0 comments on commit a183fea

Please sign in to comment.