Skip to content

Commit

Permalink
check if masked-array
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Mar 20, 2024
1 parent 5611b64 commit dfa9d08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ioos_qc/qartod.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,9 @@ def attenuated_signal_test(inp : Sequence[N],
def window_func(w):
# When pandas>=1.0 and numba are installed, this is about twice as fast
try:
import numba
return w.apply(np.ptp, raw=True, engine='numba')
except (ImportError, TypeError):
except (ImportError, TypeError, numba.core.errors.NumbaTypeError):
return w.apply(np.ptp, raw=True)
check_func = np.ptp
else:
Expand Down

0 comments on commit dfa9d08

Please sign in to comment.