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

Unusable layout_waveguide2 inside PCell environment. #223

Open
Paudet-ul opened this issue Oct 9, 2024 · 0 comments
Open

Unusable layout_waveguide2 inside PCell environment. #223

Paudet-ul opened this issue Oct 9, 2024 · 0 comments

Comments

@Paudet-ul
Copy link

Hello!

It would be nice to be able to use layout_waveguide2 inside the PCell environment without having to use a defined waveguide type in the .xml. For example, we might want to define an arbitrary cross-section and use the parameters in the layout_waveguide2 function in SiEPIC.utils.layout to extrude this cross-section.

The issue with the function seems to be that it requires the layer textual name, while in the PCell environment, we're getting a Layer Info. Looking into the KLayout doc, it is possible to add a name as an attribute to the layer info object, but by default this is not done in the code.

Adding the layer name in the layer info objects would make layout_waveguide2 usage more flexible and usable in the PCell environment. I try adding it on line 333 in SiEPIC.utils.init_.py. This fixes the issue when creating my PCell in a script. But, when I try to add the cell manually inside KLayout, the Layer Info still have an empty name. I'm unsure how to propose an official fix for this issue, and would request help on the matter, especially to make it work in the GUI PCell interface.

I think it can bring much more flexibility to be able to extrude a path with cross-sections defined in code.

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

1 participant