Skip to content

Commit

Permalink
Interpolate: avoid bottleneck
Browse files Browse the repository at this point in the history
  • Loading branch information
markotoplak committed Sep 20, 2023
1 parent 967b15d commit f578867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orangecontrib/spectroscopy/preprocess/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f578867

Please sign in to comment.