Update to github version
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
# import mxpic as mx
|
||||
import mxpic as mx
|
||||
import nazca as nd
|
||||
import matplotlib
|
||||
matplotlib.use('Agg')
|
||||
import matplotlib.pyplot as plt # <-- Add this import
|
||||
import numpy as np
|
||||
|
||||
EC = mx.EC_dual_layer_px3(name="xxx",w_in=0.5,L_in=10,Ltp1=100,Ltp2=200,Ltp3=300)
|
||||
w_teeth_SiN = 0.5*np.ones(30)
|
||||
gap_teeth_SiN = 0.5*np.ones(30)
|
||||
|
||||
nd.export_plt(topcells=EC.cell,path="",title="test",filename="file.plt")
|
||||
plt.savefig("test", bbox_inches='tight', dpi=300)
|
||||
plt.close()
|
||||
# import uuid
|
||||
# mac = uuid.getnode()
|
||||
# mc_addr = ':'.join(("%012X" % mac)[i:i+2] for i in range(0, 12, 2))
|
||||
# print(mc_addr)
|
||||
w_teeth_Si = 0.45*np.ones(30)
|
||||
gap_teeth_Si = 0.45*np.ones(30)
|
||||
|
||||
|
||||
tapeout = mx.foundries.Silterra.EOM1_2ML_CU()
|
||||
|
||||
GC = mx.grating_couplers.GC_SiN_Si_Dual_Layer(name="test",
|
||||
w_teeth_SiN=w_teeth_SiN,gap_teeth_SiN=gap_teeth_SiN,
|
||||
w_teeth_Si=w_teeth_Si,gap_teeth_Si=gap_teeth_Si,
|
||||
layer_Si_teeth="WG_HM",layer_Si_slab="WG_HIGHRIB",
|
||||
layer_SiN_etch="SiN_Rib_WG",layer_SiN_slab="WG_N")
|
||||
|
||||
nd.export_gds(topcells=GC.cell,filename="..\\test.gds")
|
||||
Reference in New Issue
Block a user