def get_diagnostics(self):
        """
        Reads diagnostic data from the sensor.
        OCF (Offset Compensation Finished) - logic high indicates the finished Offset Compensation Algorithm. After power up the flag remains always to logic high.

        COF (Cordic Overflow) - logic high indicates an out of range error in the CORDIC part. When this bit is set, the angle and magnitude data is invalid. 
            The absolute output maintains the last valid angular value.

        COMP low, indicates a high magnetic field. It is recommended to monitor in addition the magnitude value.
        COMP high, indicated a weak magnetic field. It is recommended to monitor the magnitude value.
        """

        status = self.bus.read_byte_data(self.address, self.diagnostics_reg)
        bits_values = dict([('OCF',status & 0x01 == 0x01),
                            ('COF',status & 0x02 == 0x02),
                            ('Comp_Low',status & 0x04 == 0x04),
                            ('Comp_High',status & 0x08 == 0x08)])
        return bits_values