qcodes/instrument_drivers/Keysight/keysightb1500/KeysightB1500_sampling_measurement.py
def compliance(self) -> List[int]:
        """
        check for the status other than "N" (normal) and output the
        number of data values which were not measured under "N" (normal)
        status.

        For the list of all the status values and their meaning refer to
        :class:`.constants.MeasurementStatus`.

        """

        if self.data.status is None:
            raise MeasurementNotTaken('First run sampling_measurement'
                                      ' method to generate the data')
        else:
            data = self.data
            total_count = len(data.status)
            normal_count = data.status.count(constants.MeasurementStatus.N.name)
            exception_count = total_count - normal_count
            if total_count == normal_count:
                print('All measurements are normal')
            else:
                indices = [i for i, x in enumerate(data.status)
                           if x == "C" or x == "T"]
                warnings.warn(f'{str(exception_count)} measurements were '
                              f'out of compliance at {str(indices)}')

            compliance_list = [constants.MeasurementError[key].value
                               for key in data.status]
            return compliance_list

        check for the status other than "N" (normal) and output the
        number of data values which were not measured under "N" (normal)
        status.

        For the list of all the status values and their meaning refer to
        :class:`.constants.MeasurementStatus`.

        
check for the status other than "N" (normal) and output the
number of data values which were not measured under "N" (normal)
status.

For the list of all the status values and their meaning refer to
check for the status other than " N " ( normal ) and output the number of data values which were not measured under " N " ( normal ) status . For the list of all the status values and their meaning refer to
def compliance(self) -> List[int]:
        if self.data.status is None:
            raise MeasurementNotTaken('First run sampling_measurement'
                                      ' method to generate the data')
        else:
            data = self.data
            total_count = len(data.status)
            normal_count = data.status.count(constants.MeasurementStatus.N.name)
            exception_count = total_count - normal_count
            if total_count == normal_count:
                print('All measurements are normal')
            else:
                indices = [i for i, x in enumerate(data.status)
                           if x == "C" or x == "T"]
                warnings.warn(f'{str(exception_count)} measurements were '
                              f'out of compliance at {str(indices)}')
            compliance_list = [constants.MeasurementError[key].value
                               for key in data.status]
            return compliance_list
def compliance ( self ) -> List [ int ] : if self . data . status is None : raise MeasurementNotTaken ( 'First run sampling_measurement' ' method to generate the data' ) else : data = self . data total_count = len ( data . status ) normal_count = data . status . count ( constants . MeasurementStatus . N . name ) exception_count = total_count - normal_count if total_count == normal_count : print ( 'All measurements are normal' ) else : indices = [ i for i , x in enumerate ( data . status ) if x == "C" or x == "T" ] warnings . warn ( f'{str(exception_count)} measurements were ' f'out of compliance at {str(indices)}' ) compliance_list = [ constants . MeasurementError [ key ] . value for key in data . status ] return compliance_list
check for the status other than "N" (normal) and output the
number of data values which were not measured under "N" (normal)
status.
check for the status other than " N " ( normal ) and output the number of data values which were not measured under " N " ( normal ) status .
"""
        check for the status other than "N" (normal) and output the
        number of data values which were not measured under "N" (normal)
        status.

        For the list of all the status values and their meaning refer to
        :class:`.constants.MeasurementStatus`.

        """
self
class
None