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

GDSII layers #817

Merged
merged 3 commits into from
Apr 19, 2019
Merged

GDSII layers #817

merged 3 commits into from
Apr 19, 2019

Conversation

HomerReid
Copy link
Contributor

Fixes #514. Requires most recent repository version of libGDSII.

>>> mp.GDSII_layers('python/examples/coupler.gds')              
Out[2]: [0, 1, 2, 3, 4, 5, 31, 32]
```

@HomerReid HomerReid changed the title updates GDSII layers Apr 11, 2019
@stevengj
Copy link
Collaborator

Would be nice to have the configure script check for a version of libGDSII so that it can give a more helpful error message than a compilation error. I'm a bit worried that people will be confused if they download the new Meep and it fails to compile because they have an older version of libGDSII installed.

@oskooi commented that it would also be nice to get string labels in the file as well.

@stevengj
Copy link
Collaborator

I updated it so that it still compiles with older versions of libgdsii

@stevengj stevengj merged commit 5a74995 into NanoComp:master Apr 19, 2019
bencbartlett pushed a commit to bencbartlett/meep that referenced this pull request Sep 9, 2021
* updates

* add configure check for libGDSII::GetLayers

* better error message
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

Successfully merging this pull request may close these issues.

GDSII file introspection
2 participants