Skip to content

Commit

Permalink
fix: add model argument to metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Virako committed Jan 12, 2024
1 parent 8c485b1 commit f22d83a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions flamapy/core/operations/metrics_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ def __init__(self) -> None:
self.model: Optional[VariabilityModel] = None

@abstractmethod
def calculate_metamodel_metrics(self) -> List[Dict[str, Any]]:
def calculate_metamodel_metrics(
self,
model: VariabilityModel,
) -> List[Dict[str, Any]]:
"""Return a list of metrics for each metamodel"""

def only_these_metrics(self, filter: List[str]) -> None:
Expand Down Expand Up @@ -99,4 +102,4 @@ def construct_result(

@staticmethod
def only_these_metrics(self, filter: List[str]) -> None:
self.filter = filter
self.filter = filter

0 comments on commit f22d83a

Please sign in to comment.