Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
append on timeseries and merge_results is not used.
  • Loading branch information
jsolaas committed Oct 24, 2024
1 parent 400374d commit dbdb6dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/libecalc/application/energy_calculator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from collections import defaultdict
from functools import reduce
from typing import Dict

import numpy as np
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 0 additions & 4 deletions src/libecalc/common/utils/rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dbdb6dd

Please sign in to comment.