use klamath for examples

This commit is contained in:
Jan Petykiewicz 2020-10-10 19:10:35 -07:00
parent c23c391d83
commit ae71dc9a8f
2 changed files with 6 additions and 5 deletions

View File

@ -3,7 +3,7 @@
import numpy import numpy
import masque import masque
import masque.file.gdsii import masque.file.klamath
from masque import shapes from masque import shapes
@ -24,7 +24,7 @@ def main():
pat2 = pat.copy() pat2 = pat.copy()
pat2.name = 'grating2' pat2.name = 'grating2'
masque.file.gdsii.writefile((pat, pat2), 'out.gds.gz', 1e-9, 1e-3) masque.file.klamath.writefile((pat, pat2), 'out.gds.gz', 1e-9, 1e-3)
if __name__ == '__main__': if __name__ == '__main__':

View File

@ -3,6 +3,7 @@ from numpy import pi
import masque import masque
import masque.file.gdsii import masque.file.gdsii
import masque.file.klamath
import masque.file.dxf import masque.file.dxf
import masque.file.oasis import masque.file.oasis
from masque import shapes, Pattern, SubPattern from masque import shapes, Pattern, SubPattern
@ -83,10 +84,10 @@ def main():
] ]
folder = 'layouts/' folder = 'layouts/'
masque.file.gdsii.writefile((pat, pat2, pat3, pat4), folder + 'rep.gds.gz', 1e-9, 1e-3) masque.file.klamath.writefile((pat, pat2, pat3, pat4), folder + 'rep.gds.gz', 1e-9, 1e-3)
cells = list(masque.file.gdsii.readfile(folder + 'rep.gds.gz')[0].values()) cells = list(masque.file.klamath.readfile(folder + 'rep.gds.gz')[0].values())
masque.file.gdsii.writefile(cells, folder + 'rerep.gds.gz', 1e-9, 1e-3) masque.file.klamath.writefile(cells, folder + 'rerep.gds.gz', 1e-9, 1e-3)
masque.file.dxf.writefile(pat4, folder + 'rep.dxf.gz') masque.file.dxf.writefile(pat4, folder + 'rep.dxf.gz')
dxf, info = masque.file.dxf.readfile(folder + 'rep.dxf.gz') dxf, info = masque.file.dxf.readfile(folder + 'rep.dxf.gz')