Skip to content
Snippets Groups Projects
Commit 0d14c98e authored by Chenxi Fu's avatar Chenxi Fu
Browse files

tct save current精简

parent 550818da
No related branches found
No related tags found
1 merge request!27ngspice画图代码整理
This commit is part of merge request !27. Comments created here will be created in the context of that merge request.
...@@ -78,7 +78,7 @@ def main(kwargs): ...@@ -78,7 +78,7 @@ def main(kwargs):
my_current = ccrt.CalCurrentLaser(my_d, my_f, my_l) my_current = ccrt.CalCurrentLaser(my_d, my_f, my_l)
if 'ngspice' in amplifier: if 'ngspice' in amplifier:
save_current(my_d, my_current,my_f = devfield.DevsimField(my_d.device, my_d.dimension, voltage, 1, my_d.l_z), key=None) save_current(my_d, my_current, key=None)
input_p=ngsip.set_input(my_current, my_d, key=None) input_p=ngsip.set_input(my_current, my_d, key=None)
input_c=','.join(input_p) input_c=','.join(input_p)
ng.ngspice_t0(input_c, input_p) ng.ngspice_t0(input_c, input_p)
...@@ -102,7 +102,7 @@ def main(kwargs): ...@@ -102,7 +102,7 @@ def main(kwargs):
print("total time used:%s"%(time.time()-start)) print("total time used:%s"%(time.time()-start))
#TODO: move this to calcurrent #TODO: move this to calcurrent
def save_current(my_d,my_current,my_f,key): def save_current(my_d,my_current,key):
if "planar3D" in my_d.det_model or "planarRing" in my_d.det_model: if "planar3D" in my_d.det_model or "planarRing" in my_d.det_model:
path = os.path.join('output', 'pintct', my_d.det_name, ) path = os.path.join('output', 'pintct', my_d.det_name, )
elif "lgad3D" in my_d.det_model: elif "lgad3D" in my_d.det_model:
......
...@@ -28,7 +28,7 @@ my_l = raser.TCTTracks(my_d, dset.laser) ...@@ -28,7 +28,7 @@ my_l = raser.TCTTracks(my_d, dset.laser)
my_current = raser.CalCurrentLaser(my_d, my_f, my_l) my_current = raser.CalCurrentLaser(my_d, my_f, my_l)
ele_current = raser.Amplifier(my_current.sum_cu, dset.amplifier) ele_current = raser.Amplifier(my_current.sum_cu, dset.amplifier)
save_TTree.save_signal_TTree(dset,my_d,my_l.fx_rel,ele_current,my_f) save_TTree.save_signal_TTree(dset,my_d,my_l.fx_rel,ele_current,my_f)
my_current.save_current(dset,my_d,my_l,my_f,"fx_rel") my_current.save_current(dset,my_d,my_l,"fx_rel")
current_SiC = array("d") current_SiC = array("d")
T_SiC = array("d") T_SiC = array("d")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment