From 63bf18ab7f9784497494a0e30beb2a696b64c713 Mon Sep 17 00:00:00 2001 From: BENCE Aurelien <aurelien.bence@synchrotron-soleil.fr> Date: Tue, 21 Jun 2022 15:03:10 +0200 Subject: [PATCH] wrong syntax for Local synchro card --- DG_PY_Kalypso.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DG_PY_Kalypso.py b/DG_PY_Kalypso.py index c27cf3c..b7e001e 100644 --- a/DG_PY_Kalypso.py +++ b/DG_PY_Kalypso.py @@ -198,13 +198,13 @@ class StateThread(Thread): str_state = 'acquisition in progress...please be patient' else: str_state = 'acquisition in progress...please be patient -to stop acquisition send Stop command' - elif self.mother.Local_synchro_attr!="": - loc_syn_attr=tango.AttributeProxy("self.mother.Local_synchro_attr") + elif self.mother.Local_synchro_attr !="": + loc_syn_attr=tango.AttributeProxy(self.mother.Local_synchro_attr) loc_syn_attr_state=loc_syn_attr.state() loc_syn_attr_value=loc_syn_attr.read().value if loc_syn_attr_value != 3 or loc_syn_attr_state != tango.DevState.ON: self.mother.set_state(tango.DevState.ALARM) - str_state = 'Please check Local synchro card' + str_state = 'Please check Local synchro card: '+self.mother.Local_synchro_attr elif ps_outut == False: self.mother.set_state(tango.DevState.ALARM) str_state = 'Alarm Power_supply Off' -- GitLab