From 6b86a1c319af38ae6d80f925c87a6dbd057d58fd Mon Sep 17 00:00:00 2001 From: Thierry Zamofing Date: Fri, 23 Jun 2023 14:57:32 +0200 Subject: [PATCH] minor fixes --- app_config.py | 4 +++- swissmx.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app_config.py b/app_config.py index 780baba..270d514 100644 --- a/app_config.py +++ b/app_config.py @@ -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') diff --git a/swissmx.py b/swissmx.py index 07e713c..619c4c4 100755 --- a/swissmx.py +++ b/swissmx.py @@ -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: