Type check schema between gdstk and gdspy
daquinteroflex opened this issue · 0 comments
daquinteroflex commented
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.