

def datetime_hourly_temperature(self, dt, unit):
    'The hourly observed temperatures for each period.\n\n        Parameters\n        ----------\n        periods : [list of] eemeter.evaluation.Period\n            Time periods over which temperatures will be collected. A single\n            datetime period may be given.\n        unit : {"degC", "degF"}\n            The unit in which temperatures should be returned.\n\n        Returns\n        -------\n        out : np.ndarray\n            Array of arrays of observed_daily temperatures observed during each\n            period. Note: array is not guaranteed to be rectangular. If a\n            single datetime period is given, a single numpy array of\n            temperatures will be returned.\n        '
    try:
        return self._unit_convert(self.tempC[dt], unit)
    except KeyError:
        try:
            self._fetch_datetime(dt)
            return self._unit_convert(self.tempC[unit], unit)
        except KeyError:
            pass
    return np.nan

dataset/ETHPy150Open impactlab/eemeter/eemeter/weather.py WeatherSourceBase.datetime_hourly_temperature/VarMisuse@61/302 `dt`->`unit`