From 5e4c3018968cc75cb11f116e3d8e1e467fb03373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Thu, 13 Jun 2024 09:53:14 -0400 Subject: [PATCH] ENH: Remove redundant `is_fitted` overrides in model classes Remove redundant `is_fitted` overrides in model classes. --- src/eddymotion/model/base.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/eddymotion/model/base.py b/src/eddymotion/model/base.py index 6d7653a7..828d4496 100644 --- a/src/eddymotion/model/base.py +++ b/src/eddymotion/model/base.py @@ -121,7 +121,6 @@ def __init__(self, mask=None, **kwargs): # Keep model state self._model = None # "Main" model self._models = None # For parallel (chunked) execution - self._is_fitted = False # Setup brain mask self._mask = mask @@ -457,7 +456,6 @@ def __init__(self, **kwargs): self._bias = kwargs.get("bias", True) self._stat = kwargs.get("stat", "median") self._data = None - self._is_fitted = False def fit(self, data, **kwargs): """Calculate the average.""" @@ -487,10 +485,6 @@ def fit(self, data, **kwargs): self._data = avg_func(shells, axis=-1) self._is_fitted = True - @property - def is_fitted(self): - return self._is_fitted - def predict(self, *_, **kwargs): """Return the average map."""