(self, sensors, verbose=False)
return sensor_bit, current_contact_quality
Sets the quality value for the sensor from the quality bits in the packet data.
        Optionally will return the value.

        :param sensors - reference to sensors dict in Emotiv class.
        :param verbose - Flag for outputting debug values.
Sets the quality value for the sensor from the quality bits in the packet data.
        Optionally will return the value.
Sets the quality value for the sensor from the quality bits in the packet data . Optionally will return the value .
def handle_quality(self, sensors, verbose=False):
        """
        Sets the quality value for the sensor from the quality bits in the packet data.
        Optionally will return the value.

        :param sensors - reference to sensors dict in Emotiv class.
        :param verbose - Flag for outputting debug values.

        """
        current_contact_quality = get_level(self.raw_data, quality_bits, verbose)

        if sys.version_info >= (3, 0):
            sensor_bit = self.raw_data[0]
        else:
            sensor_bit = ord(self.raw_data[0])
        if sensor_quality_bit.get(sensor_bit, False):
            sensors[sensor_quality_bit[sensor_bit]]['quality'] = current_contact_quality
        else:
            sensors['Unknown']['quality'] = current_contact_quality
            sensors['Unknown']['value'] = sensor_bit
        return sensor_bit, current_contact_quality
def handle_quality ( self , sensors , verbose = False ) : current_contact_quality = get_level ( self . raw_data , quality_bits , verbose ) if sys . version_info >= ( 3 , 0 ) : sensor_bit = self . raw_data [ 0 ] else : sensor_bit = ord ( self . raw_data [ 0 ] ) if sensor_quality_bit . get ( sensor_bit , False ) : sensors [ sensor_quality_bit [ sensor_bit ] ] [ 'quality' ] = current_contact_quality else : sensors [ 'Unknown' ] [ 'quality' ] = current_contact_quality sensors [ 'Unknown' ] [ 'value' ] = sensor_bit return sensor_bit , current_contact_quality