def temperature(self):
        """Get the temperature from the sensor.

        :returns: The temperature in degree celcius as a float

        :example:

        >>> sensor = BMP180(gw)
        >>> sensor.load_calibration()
        >>> sensor.temperature()
        21.4

        """
        ut = self.get_raw_temp()
        x1 = ((ut - self.cal['AC6']) * self.cal['AC5']) >> 15
        x2 = (self.cal['MC'] << 11) // (x1 + self.cal['MD'])
        b5 = x1 + x2
        return ((b5 + 8) >> 4) / 10
def temperature ( self ) : ut = self . get_raw_temp ( ) x1 = ( ( ut - self . cal [ 'AC6' ] ) * self . cal [ 'AC5' ] ) >> 15 x2 = ( self . cal [ 'MC' ] << 11 ) // ( x1 + self . cal [ 'MD' ] ) b5 = x1 + x2 return ( ( b5 + 8 ) >> 4 ) / 10
Get the temperature from the sensor.

        :returns: The temperature in degree celcius as a float

        :example:

        >>> sensor = BMP180(gw)
        >>> sensor.load_calibration()
        >>> sensor.temperature()
        21.4