@staticmethod
    def _unit_convert(x, unit):
        if unit is None or unit == "degC":
            return x
        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/original