diff --git a/src/libecalc/application/energy_calculator.py b/src/libecalc/application/energy_calculator.py index 75c34f27bf..bb8f59ae90 100644 --- a/src/libecalc/application/energy_calculator.py +++ b/src/libecalc/application/energy_calculator.py @@ -1,5 +1,4 @@ from collections import defaultdict -from functools import reduce from typing import Dict import numpy as np @@ -43,10 +42,6 @@ ) -def merge_results(results_per_period: Dict[Period, EcalcModelResult]) -> EcalcModelResult: - return reduce(lambda acc, x: acc.merge(x), results_per_period.values()) - - class EnergyCalculator: def __init__( self, diff --git a/src/libecalc/common/utils/rates.py b/src/libecalc/common/utils/rates.py index bdbbf82ae1..0288703d6c 100644 --- a/src/libecalc/common/utils/rates.py +++ b/src/libecalc/common/utils/rates.py @@ -387,10 +387,6 @@ def __eq__(self, other: object) -> bool: and self.unit == other.unit ) - def append(self, period: Period, value: TimeSeriesValue): - self.periods.append(period) - self.values.append(value) - class TimeSeriesString(TimeSeries[str]): def resample(self, freq: Frequency, include_start_date: bool, include_end_date: bool) -> Self: