From 3be514b960a72d58ba1031746f9d005451e99352 Mon Sep 17 00:00:00 2001 From: Marko Toplak Date: Wed, 20 Sep 2023 11:39:31 +0200 Subject: [PATCH] Interpolate: avoid bottleneck --- orangecontrib/spectroscopy/preprocess/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: