Skip to content

Commit

Permalink
fix technology export
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdorch committed Apr 2, 2023
1 parent f4acea2 commit fcd4eea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gdsfactory/technology/klayout_tech.py
Expand Up @@ -65,7 +65,7 @@ def export_technology_files(
if not self.technology.name:
self.technology.name = self.name

self.technology.layer_views_file = lyp_path.name
self.technology.layer_properties_file = lyp_path.name

Check warning on line 68 in gdsfactory/technology/klayout_tech.py

View check run for this annotation

Codecov / codecov/patch

gdsfactory/technology/klayout_tech.py#L68

Added line #L68 was not covered by tests
# TODO: Also interop with xs scripts?

# Write lyp to file
Expand Down
8 changes: 4 additions & 4 deletions gdsfactory/technology/layer_views.py
Expand Up @@ -1124,16 +1124,16 @@ def to_yaml(
out_dict["CustomDitherPatterns"] = {
name: dp.dict(
exclude_none=True, exclude_defaults=True, exclude_unset=True
)
)
for name, dp in self.custom_dither_patterns.items()
}
}
if self.custom_line_styles:
out_dict["CustomLineStyles"] = {
name: ls.dict(
exclude_none=True, exclude_defaults=True, exclude_unset=True
)
)
for name, ls in self.custom_line_styles.items()
}
}

lf_path.write_bytes(
yaml.dump(
Expand Down

0 comments on commit fcd4eea

Please sign in to comment.