Skip to content

Commit

Permalink
add info label to cell_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Nov 12, 2023
1 parent f3edb98 commit a765ed0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions gdsfactory/labels/add_label_yaml.py
Expand Up @@ -53,6 +53,7 @@ def add_label_yaml(
analysis_settings = analysis_settings or {}
measurement_settings = measurement_settings or {}
cell_settings = component.metadata.get("full", {})
cell_settings.update(component.metadata.get("info", {}))

optical_ports = component.get_ports_list(port_type="optical")
electrical_ports = component.get_ports_list(port_type="electrical")
Expand Down
12 changes: 12 additions & 0 deletions test-data-regression/test_import_json_label.yml
Expand Up @@ -11,11 +11,23 @@ cell_settings:
cross_section: xs_sc_no_pins
decorator:
function: add_pins_siepic
cross_section: xs_sc_no_pins
decorator:
function: add_label_yaml
settings:
with_yaml_format: false
grating_coupler:
period: 0.6759999999999999
polarization: te
wavelength: 1.53
length: 10.0
recenter: false
route_info:
length: 10.0
type: xs_sc_no_pins
weight: 10.0
xs_sc_no_pins_length: 10.0
width: 0.5
doe: null
measurement: null
measurement_settings: {}
Expand Down

0 comments on commit a765ed0

Please sign in to comment.