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

Extract layers from gds #2767

Open
juanferv opened this issue May 20, 2024 · 1 comment
Open

Extract layers from gds #2767

juanferv opened this issue May 20, 2024 · 1 comment
Labels
question Further information is requested

Comments

@juanferv
Copy link

To extract the layers of a specific .gds is a problem to try to do the tiling of a .gds file. Just to allow for example to avoid all the layers of a specific gdsfile and not to add manually. I didn't find any function from gdsfactory. Please, if you know, let me know :)

At the end is a really easy function from gdstk.

def extract_layers_from_gds(file_path):
    # Cargar el archivo GDS
    gdsii = gdstk.read_gds(file_path)
    layers_dict = gdsii.layers_and_datatypes()   
    return layers_dict

@juanferv juanferv added the enhancement New feature or request label May 20, 2024
@joamatab
Copy link
Contributor

you can do

c = gf.c.straight()
print(c.layers)

@joamatab joamatab added question Further information is requested and removed enhancement New feature or request labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants