diff --git a/orangecontrib/spectroscopy/preprocess/__init__.py b/orangecontrib/spectroscopy/preprocess/__init__.py index bbc5014d8..5895e261b 100644 --- a/orangecontrib/spectroscopy/preprocess/__init__.py +++ b/orangecontrib/spectroscopy/preprocess/__init__.py @@ -440,7 +440,7 @@ def __call__(self, data): return np.ones((len(data), len(self.points))) * np.nan interpfn = self.interpfn if interpfn is None: - if self.handle_nans and bottleneck.anynan(ys): + if self.handle_nans and np.any(np.isnan(ys)): if self.kind == "linear": interpfn = interp1d_with_unknowns_numpy else: