# `AttrQuality`

digraph inheritance107ffb90b1 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "AttrQuality" [URL="#taurus.core.AttrQuality",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="Enumeration of quality states for Taurus attributes. based on"]; "IntEnum" -> "AttrQuality" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Enum" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Create a collection of name/value pairs."]; "IntEnum" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Enum where members are also (and must be) ints"]; "ReprEnum" -> "IntEnum" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ReprEnum" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Only changes the repr(), leaving str() and format() to the mixed-in type."]; "Enum" -> "ReprEnum" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class AttrQuality(*values)

  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