From 7545fe1faccee11ad7c618f9dd603976dcae7617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miguel=20Horcas?= Date: Thu, 1 Aug 2024 18:07:15 +0200 Subject: [PATCH] Fix model_type_extension property --- .../pysat_metamodel/operations/pysat_metrics.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/flamapy/metamodels/pysat_metamodel/operations/pysat_metrics.py b/flamapy/metamodels/pysat_metamodel/operations/pysat_metrics.py index 7c8bfc7..242b069 100644 --- a/flamapy/metamodels/pysat_metamodel/operations/pysat_metrics.py +++ b/flamapy/metamodels/pysat_metamodel/operations/pysat_metrics.py @@ -29,11 +29,19 @@ def __init__(self) -> None: super().__init__() self.model: Optional[VariabilityModel] = None self.result: list[dict[str, Any]] = [] - self.model_type_extension = "pysat" + self._model_type_extension = "pysat" self._features: dict[int, str] = {} self._common_features: list[Any] = [] self._dead_features: list[Any] = [] + @property + def model_type_extension(self) -> str: + return self._model_type_extension + + @model_type_extension.setter + def model_type_extension(self, ext: str) -> None: + self._model_type_extension = ext + def get_result(self) -> list[dict[str, Any]]: return self.result