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

Turn off cladding layer by setting to None #28

Open
gyger opened this issue Jan 27, 2020 · 1 comment
Open

Turn off cladding layer by setting to None #28

gyger opened this issue Jan 27, 2020 · 1 comment

Comments

@gyger
Copy link
Contributor

gyger commented Jan 27, 2020

I think it would be very convenient to have the possibility to turn off the cladding layer. I understand that one can also just ignore it, so if this is the preferred option, please close the Feature Request.
Otherwise I would suggest the possibility to set cladding_layer to None to then not create one.

@Johny-Leo
Copy link

This can be easily achieved by deleting all elements (mostly polygons) in layer 1 and 2 (default boolean layers) of your final cell. For instance:

cell_top.remove_polygons(lambda pts, layer, datatype: layer==1 or layer==2);

This still may not give you flexibility to rename all layer numbers, but probably not a big deal.
The difficulty of directly "turning off" layer 1 and 2 is probably in the boolean operation of gdspy, which tends to keep the entities from different layers before the operation (if operation is on the same layer, the entities before operation do not show up in the operation result).

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

2 participants