Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.to_yaml() misses some layer properties defined in Klayout #2569

Open
smgitrep opened this issue Feb 28, 2024 · 4 comments
Open

.to_yaml() misses some layer properties defined in Klayout #2569

smgitrep opened this issue Feb 28, 2024 · 4 comments

Comments

@smgitrep
Copy link

I created a lyp file in Klayout and converted it to a yaml file using .to_yaml(), but the resulting yaml file does not include all layer properties. For example, it leaves out the "stiple" pattern and line "style" defined in Klayout.

@joamatab
Copy link
Contributor

joamatab commented Mar 5, 2024

yes, the LYP misses some layer properties

PRs are welcome

@thomasdorch

@thomasdorch
Copy link
Contributor

Originally I wrote the whole LayerView processing stuff to avoid using klayout (it was an optional dependency at the time) but now that kfactory/klayout are part of the requirements this should be refactored to use the kfactory lyp import/export.

@smgitrep
Copy link
Author

smgitrep commented Mar 5, 2024

Thank you for the comments. I decided to setup layerviews using a yaml file, and then, convert it to lyp for use in Klayout. This seems easier. I found hatch (Klayout "stiple") and line styles (Klayout "style") in one of the python scripts included with gdsfactory. See attached txt file. I also found colors can be set using color names (strings) in the yaml file and to_lyp converts them to hex values for use in Klayout.

klayout hatch and line styles.txt

@joamatab
Copy link
Contributor

@skychil also was working on a CSV version of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants