Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
nikml committed Jul 10, 2024
1 parent c87abfe commit 5c63da2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions nannyml/performance_calculation/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,6 @@ def __init__(
for m in metrics
]

self.previous_reference_data: Optional[pd.DataFrame] = None
self.previous_reference_results: Optional[pd.DataFrame] = None

self.result: Optional[Result] = None

def __str__(self): # noqa: D105
Expand Down Expand Up @@ -288,11 +285,9 @@ def _fit(self, reference_data: pd.DataFrame, *args, **kwargs) -> PerformanceCalc
f"an unexpected error occurred when calculating metric '{metric.display_name}': {exc}"
)
continue
self.previous_reference_data = reference_data

self.result = self._calculate(reference_data)
self.result.data[('chunk', 'period')] = 'reference'
self.result.reference_data = reference_data.copy()

return self

Expand Down

0 comments on commit 5c63da2

Please sign in to comment.