

def hdd(self, periods, unit, base, per_day=False):
    'The total heating degree days observed during each time period.\n\n        Parameters\n        ----------\n        periods : [list of] eemeter.evaluation.Period\n            Time periods over which heating degree days will be calculated and\n            collected. A single period may be supplied.\n        unit : {"degC", "degF"}\n            The temperature unit to be used\n        base : int or float\n            The base of the heating degree day\n        per_day : bool\n            If True, the total should be returned as an average instead of\n            a sum.\n\n        Returns\n        -------\n        out : np.ndarray\n            Array of heating degree days observed during each time period.\n        '
    if is_list_like(periods):
        return np.array([self._period_hdd(p, unit, base, per_day) for p in periods])
    else:
        return self._period_hdd(periods, unit, base, per_day)

dataset/ETHPy150Open impactlab/eemeter/eemeter/weather.py WeatherSourceBase.hdd/original