AttrQuality

Inheritance diagram of AttrQuality
class AttrQuality[source]

Bases: enum.IntEnum

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
ATTR_ALARM = <AttrQuality.ATTR_ALARM: 2>
ATTR_CHANGING = <AttrQuality.ATTR_CHANGING: 3>
ATTR_INVALID = <AttrQuality.ATTR_INVALID: 1>
ATTR_VALID = <AttrQuality.ATTR_VALID: 0>
ATTR_WARNING = <AttrQuality.ATTR_WARNING: 4>