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

Type check schema between gdstk and gdspy #230

Open
daquinteroflex opened this issue Jan 5, 2024 · 0 comments
Open

Type check schema between gdstk and gdspy #230

daquinteroflex opened this issue Jan 5, 2024 · 0 comments

Comments

@daquinteroflex
Copy link

Was just thinking if it'd be helpful to create a unified schema that can be used to type check between gdstk and gdspy. Probably a bit too much work, but would create a unified shared data structure core that can be used when integrating elements into these packages.

It would only be a schema typing package and would not involve the full import of either package, but guarantees a level of compatibility between.

Like:

import gdsCoreSchemaCell
cell = gds.gdsCoreSchemaCell
isinstance(gdscore, gdstk.Cell) == isinstance(cell, gdspy.Cell) 

Not really mission critical and just an architectural idea that maybe is a lot of work and not really worth doing, but just something I noticed when looking into type support between both backends.

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