AttrQuality

Inheritance diagram of AttrQuality
class AttrQuality(value)[source]

Enumeration of quality states for Taurus attributes. based on This is the Taurus equivalent to PyTango.AttrQuality. The members present in PyTango are also defined here with the same values, allowing equality comparisons with PyTango.AttrQuality (but not identity checks!):

from taurus.core import AttrQuality as Q1
from PyTango import AttrQuality as Q2

Q1.ATTR_ALARM == Q2.ATTR_ALARM                  # --> True
Q1.ATTR_ALARM in (Q2.ATTR_ALARM, Q2.ATTR_ALARM) # --> True
Q1.ATTR_ALARM == 2                              # --> True
Q1.ATTR_ALARM is 2                              # --> False
Q1.ATTR_ALARM is Q2.ATTR_ALARM                  # --> False

Import from taurus.core as:

from taurus.core import AttrQuality
ATTR_ALARM = 2
ATTR_CHANGING = 3
ATTR_INVALID = 1
ATTR_VALID = 0
ATTR_WARNING = 4