Debug Dispersion measurement and added first support for XTCAV stabilizer
This commit is contained in:
@ -39,12 +39,12 @@ def loadActuator(hid,scanrun=1):
|
||||
data = {}
|
||||
if 'actuators' in hid[run]['method'].keys():
|
||||
for key1 in hid[run]['method']['actuators'].keys():
|
||||
if isinstance(hid[run]['method']['actuators'],h5py.Group):
|
||||
if isinstance(hid[run]['method']['actuators'][key1],h5py.Group):
|
||||
for key2 in hid[run]['method']['actuators'][key1].keys():
|
||||
val = hid[run]['method']['actuators'][key1][key2][()]
|
||||
data[key1+':'+key2]={'val':val}
|
||||
else:
|
||||
data[key1]=hid[run]['method']['actuators'][key1][()]
|
||||
else:
|
||||
data[key1]=hid[run]['method']['actuators'][key1][()]
|
||||
return data
|
||||
|
||||
|
||||
|
@ -154,6 +154,8 @@ def writeAnalysis(hid,data,scanrun=1):
|
||||
|
||||
def writeFigure(filename,figs):
|
||||
for i,ele in enumerate(figs):
|
||||
if ele == None:
|
||||
continue
|
||||
plotname='%s_Fig%d.png' % (filename,(i+1))
|
||||
im = Image.open(ele)
|
||||
im.save(plotname)
|
||||
|
@ -28,11 +28,12 @@ class SlicScan(QObject):
|
||||
|
||||
def start(self,daq,snap=False):
|
||||
self.clear()
|
||||
self.daq=daq
|
||||
Thread(target=self.Tmonitor).start()
|
||||
self.startSnap(snap)
|
||||
|
||||
def startSnap(self,snap=False):
|
||||
if not snap:
|
||||
if snap:
|
||||
Thread(target=self.Tsnap).start()
|
||||
|
||||
def Tsnap(self):
|
||||
|
Reference in New Issue
Block a user