def get_sky_temperature(self, n=9):
        '''
        Populates the self.sky_temp property

        Calculation is taken from Rs232_Comms_v100.pdf section "Converting values
        sent by the device to meaningful units" item 1.

        Does this n times as recommended by the "Communication operational
        recommendations" section in Rs232_Comms_v100.pdf
        '''
        if self.logger:
            self.logger.info('Getting sky temperature')
        values = []
        for i in range(0, n):
            try:
                value = 100. / float(self.query('!S')[0])
            except:
                pass
            else:
                if self.logger:
                    self.logger.debug('  Sky Temperature Query = {:.1f}'.format(value))
                values.append(value)
        if len(values) >= n - 1:
            self.sky_temp = np.median(values) * u.Celsius
            if self.logger:
                self.logger.info('  Sky Temperature = {:.1f}'.format(self.sky_temp))
        else:
            self.sky_temp = None
            if self.logger:
                self.logger.info('  Failed to Read Sky Temperature')
        return self.sky_temp
dataset/ETHPy150Open panoptes/POCS/scripts/read_weather.py/AAGCloudSensor.get_sky_temperature/swapped operands of `/`