Skip to content

Commit

Permalink
Merge pull request #4 from gdsfactory/fix_fstring
Browse files Browse the repository at this point in the history
fix fstring
  • Loading branch information
sebastian-goeldi authored Oct 29, 2024
2 parents c0ae5b9 + dfeb32d commit baba888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions klayout/python/metaports/ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def portdict_from_meta(cell):
def show_port(port, cell, layout):

if "cross_section" in port:
cs = layout.meta_info_value(f"kfactory:cross_section:{port["cross_section"]}")
cs = layout.meta_info_value(f"kfactory:cross_section:{port['cross_section']}")
port["width"] = cs["width"]
port["layer"] = layout.meta_info_value(f"kfactory:layer_enclosure:{cs["layer_enclosure"]}")["main_layer"]
port["layer"] = layout.meta_info_value(f"kfactory:layer_enclosure:{cs['layer_enclosure']}")["main_layer"]
if "width" in port and "layer" in port and "trans" in port:
lidx = cell.layout().layer(port["layer"])
trans = pya.Trans(port["trans"])
Expand Down

0 comments on commit baba888

Please sign in to comment.