snapshot 2019-03-31 14:02:15.566630
This commit is contained in:
commit
356ef619e5
23 changed files with 4029 additions and 0 deletions
28
examples/ellip_grating.py
Normal file
28
examples/ellip_grating.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Quick script for testing arcs
|
||||
|
||||
import numpy
|
||||
|
||||
import masque
|
||||
import masque.file.gdsii
|
||||
from masque import shapes
|
||||
|
||||
|
||||
def main():
|
||||
pat = masque.Pattern(name='ellip_grating')
|
||||
for rmin in numpy.arange(10, 15, 0.5):
|
||||
pat.shapes.append(shapes.Arc(
|
||||
radii=(rmin, rmin),
|
||||
width=0.1,
|
||||
angles=(-numpy.pi/4, numpy.pi/4)
|
||||
))
|
||||
|
||||
pat.scale_by(1000)
|
||||
pat.visualize()
|
||||
pat2 = pat.copy()
|
||||
pat2.name = 'grating2'
|
||||
|
||||
masque.file.gdsii.write_dose2dtype((pat, pat2), 'out.gds', 1e-9, 1e-3)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue