Debug Dispersion measurement and added first support for XTCAV stabilizer

This commit is contained in:
2023-06-16 16:58:56 +02:00
parent dc5df0ca2a
commit a54abd383e
8 changed files with 132 additions and 56 deletions

View File

@ -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

View File

@ -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)

View File

@ -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):