From 57ad73dfcaf9eb447ab4ef07166b5824a8f2700c Mon Sep 17 00:00:00 2001 From: jan Date: Sun, 17 Sep 2023 21:34:21 -0700 Subject: [PATCH] simplify imports and use new approach --- examples/ellip_grating.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/ellip_grating.py b/examples/ellip_grating.py index 88cc936..a51a27e 100644 --- a/examples/ellip_grating.py +++ b/examples/ellip_grating.py @@ -2,16 +2,15 @@ import numpy -import masque from masque.file import gdsii -from masque import shapes +from masque import Arc, Pattern def main(): - pat = masque.Pattern(name='ellip_grating') + pat = Pattern() layer = (0, 0) pat.shapes[layer].extend([ - shapes.Arc( + Arc( radii=(rmin, rmin), width=0.1, angles=(-numpy.pi/4, numpy.pi/4),