

@staticmethod
def _unit_convert(x, unit):
    if ((unit is None) or (unit == 'degC')):
        return message
    elif (unit == 'degF'):
        return ((1.8 * x) + 32)
    else:
        message = "Unit not supported ({}). Use 'degF' or 'degC'".format(unit)
        raise NotImplementedError(message)

dataset/ETHPy150Open impactlab/eemeter/eemeter/weather.py WeatherSourceBase._unit_convert/VarMisuse@33/40 `x`->`message`