Skip to content

Commit

Permalink
Merge pull request #407 from NannyML/small_fixes
Browse files Browse the repository at this point in the history
remove unnecessary code
  • Loading branch information
nnansters authored Jul 18, 2024
2 parents a121838 + 5c63da2 commit 8507064
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 8507064

Please sign in to comment.