minor fixes

This commit is contained in:
2023-06-23 14:57:32 +02:00
parent 0b63ebaa14
commit 6b86a1c319
2 changed files with 4 additions and 2 deletions

View File

@@ -144,7 +144,9 @@ class AppCfg(QSettings):
if AppCfg.DAQ_PV_CH not in keys:
dflt.append((AppCfg.DAQ_PV_CH, () )) #list of PVs
if AppCfg.DFT_POS_GONIO not in keys:
dflt.append((AppCfg.DFT_POS_GONIO, {'mount':(0.,0.,0.,0.),'align':(0.,0.,0.,0.)}))#defout positions
dflt.append((AppCfg.DFT_POS_GONIO, {'mount':(0.,0.,0.,0.),'align':(0.,0.,0.,0.)}))#default positions
if AppCfg.DFT_POS_BKLGT not in keys:
dflt.append((AppCfg.DFT_POS_BKLGT, {'pos_in': -30000.0, 'pos_out': 1000.0, 'pos_diode': -30000.0}))#default positions
for k,v in dflt:
_log.warning(f'{k} not defined. use default')

View File

@@ -2310,7 +2310,7 @@ Author Thierry Zamofing (thierry.zamofing@psi.ch)
sp.trigger(0.5) # send a start trigger (if needed) after given time
if not dt._comm is None:
dlg.setLabelText("run motion/acquisition")
dlg.setMaximum(sp.points.shape[0])
dlg.setMaximum(num_pts)
while True:
p=sp.progress()
if p<0: