From 2bd23f2f7784fc796a975de4c8567110322d5d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Lanzend=C3=B6rfer?= <david.lanzendoerfer@o2s.ch> Date: Wed, 28 Nov 2018 21:10:09 +0800 Subject: [PATCH] Verified with help structures (commented) Drew some lines and it should be perfectly aligned now --- Vendors/HKUST/Python/make_masks.py | 44 +++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/Vendors/HKUST/Python/make_masks.py b/Vendors/HKUST/Python/make_masks.py index 6be648d..cb65d63 100755 --- a/Vendors/HKUST/Python/make_masks.py +++ b/Vendors/HKUST/Python/make_masks.py @@ -2,10 +2,16 @@ import gdspy import numpy -#spacing=0.0 spacing=500.0 frame_width=200.0 square_middle=18750.0 +mask_area_width=75000.0 + +# offsets +x0=20000.0 +y0=20500.0 +x1=95000.0 +y1=95500.0 darkfield_masks = [ ["nwell","pwell","pbase","nbase"], @@ -19,11 +25,6 @@ brightfield_masks = [ ] def get_offset(idx): - x0=20000.0 - y0=20500.0 - x1=95000.0 - y1=95500.0 - if(idx==0): return [x0,y1] elif(idx==1): @@ -173,10 +174,33 @@ def make_masks(frame,mask_type,mask_mappings): for stripe in get_frame(bb): topcell.add(stripe) - #polypath = gdspy.PolyPath([get_offset(0),get_offset(3)],width=2) - #topcell.add(polypath) - #polypath = gdspy.PolyPath([get_offset(1),get_offset(2)],width=2) - #topcell.add(polypath) + ''' + p1=get_offset(0) + p2=get_offset(3) + polypath = gdspy.PolyPath([p1,p2],width=2) + topcell.add(polypath) + + p1=get_offset(1) + p2=get_offset(2) + polypath = gdspy.PolyPath([p1,p2],width=2) + topcell.add(polypath) + + p1=[x0,y0+mask_area_width/2] + p2=[x0+mask_area_width/2,y0] + polypath = gdspy.PolyPath([p1,p2],width=2) + topcell.add(polypath) + + p1=[x1,y0+mask_area_width/2] + p2=[x0+mask_area_width/2,y0] + polypath = gdspy.PolyPath([p1,p2],width=2) + topcell.add(polypath) + + p1=[x0+square_middle,y0] + p2=[x0+square_middle,y1] + polypath = gdspy.PolyPath([p1,p2],width=2) + topcell.add(polypath) + ''' + topcell=topcell.flatten(single_layer=1) outgdsii.add(topcell) -- GitLab