def _get_time_res_sum(self):
        m = self.m
        time_res = self.data.time_res_series

        try:  # Try loading time_res_sum from operational mode
            time_res_sum = self.data.time_res_sum
        except __HOLE__:
            time_res_sum = sum(time_res.at[t] for t in m.t)
        return time_res_sum
dataset/ETHPy150Open calliope-project/calliope/calliope/core.py/Model._get_time_res_sum