diff --git a/src/darsia/signals/models/linearmodel.py b/src/darsia/signals/models/linearmodel.py index 63809aa3..60367c6c 100644 --- a/src/darsia/signals/models/linearmodel.py +++ b/src/darsia/signals/models/linearmodel.py @@ -71,7 +71,10 @@ def __call__(self, img: np.ndarray) -> np.ndarray: np.ndarray: converted signal """ - return self._scaling * img + if np.isclose(self._scaling, 1.0): + return img + else: + return self._scaling * img class LinearModel(darsia.Model):