state on dilsc as of 2022-10-03

vector field, but no new state machine yet
This commit is contained in:
2022-11-21 14:51:02 +01:00
parent 485e81bfb0
commit 9636dc9cea
13 changed files with 1086 additions and 310 deletions

View File

@ -21,7 +21,7 @@
# *****************************************************************************
from secop.core import Parameter, FloatRange, BUSY, IDLE, WARN
from secop.lib.statemachine import StateMachine, Retry, Stop
from secop.lib.statemachine import StateMachine, Retry
class HasConvergence:
@ -61,9 +61,8 @@ class HasConvergence:
def cleanup(self, state):
state.default_cleanup(state)
if state.stopped:
if state.stopped is Stop: # and not Restart
self.status = WARN, 'stopped'
else:
self.status = WARN, 'stopped'
elif not state.restarted:
self.status = WARN, repr(state.last_error)
def doPoll(self):