remove UNKNOWN, UNSTABLE and DISABLED from Readable.status

- re-add them where needed (epics, entangle ...)

Change-Id: I2b8af9f5f86285f081d5418211f6940e80a1dbd7
Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/30718
Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
Tested-by: Jenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
Reviewed-by: Markus Zolliker <markus.zolliker@psi.ch>
This commit is contained in:
2023-03-20 14:14:12 +01:00
parent 11a3bed8b8
commit 361f9ac4fc
8 changed files with 169 additions and 108 deletions

View File

@ -21,7 +21,7 @@
# *****************************************************************************
from frappy.datatypes import EnumType, FloatRange, StringType
from frappy.datatypes import EnumType, FloatRange, StringType, StatusType
from frappy.modules import Drivable, Parameter, Readable
try:
@ -71,7 +71,7 @@ class EpicsReadable(Readable):
status_pv = Parameter('EPICS pv_name of status',
datatype=StringType(),
default="unset", export=False)
status = Parameter(datatype=StatusType(Readable, 'UNKNOWN'))
# Generic read and write functions
def _read_pv(self, pv_name):
@ -132,6 +132,7 @@ class EpicsDrivable(Drivable):
default="unset", export=False)
status_pv = Parameter('EPICS pv_name of status', datatype=StringType(),
default="unset", export=False)
status = Parameter(datatype=StatusType(Drivable, 'UNKNOWN'))
# Generic read and write functions