diff --git a/frappy/mixins.py b/frappy/mixins.py index 29456045..c353ad40 100644 --- a/frappy/mixins.py +++ b/frappy/mixins.py @@ -65,7 +65,7 @@ class HasOutputModule(Writable): """ # mandatory=False: it should be possible to configure a module with fixed control output_module = Attached(HasControlledBy, mandatory=False) - control_active = Parameter('control mode', BoolType()) + control_active = Parameter('control mode', BoolType(), default=False) def initModule(self): super().initModule() diff --git a/frappy_psi/convergence.py b/frappy_psi/convergence.py index f7820ea0..0a34a955 100644 --- a/frappy_psi/convergence.py +++ b/frappy_psi/convergence.py @@ -21,10 +21,11 @@ # ***************************************************************************** from frappy.core import Parameter, FloatRange, BUSY, IDLE, WARN +from frappy.states import HasStates from frappy.lib.statemachine import StateMachine, Retry, Stop -class HasConvergence: +class HasConvergence(HasStates): """mixin for convergence checks Implementation based on tolerance, settling time and timeout.