

def cdd(self, periods, unit, base, per_day=False):
    'The total cooling degree days observed during each time period.\n\n        Parameters\n        ----------\n        periods : list of eemeter.evaluation.Period objects\n            Time periods over which cooling degree days will be calculated and\n            collected. A single Period may be given.\n        unit : {"degC", "degF"}\n            The temperature unit to be used\n        base : int or float\n            The base of the cooling degree day\n        per_day : bool, default=False\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 cooling degree days observed during each time period.\n        '
    if is_list_like(periods):
        return np.array([self._period_cdd(p, unit, base, per_day) for p in periods])
    else:
        return self._period_cdd(periods, unit, base, per_day)

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