Skip to content

Commit

Permalink
Fix for numpy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Oct 30, 2024
1 parent 2ab0bfc commit e60135b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ioos_qc/qartod.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ def attenuated_signal_test(
# These are split for performance reasons
if check_type == "std":
window_func = lambda x: x.std() # noqa
check_func = np.std
check_func = np.ma.std
elif check_type == "range":

def window_func(w):
Expand All @@ -845,7 +845,7 @@ def window_func(w):
except (ImportError, TypeError, NumbaTypeError):
return w.apply(np.ptp, raw=True)

check_func = np.ptp
check_func = np.ma.ptp
else:
msg = f'Check type "{check_type}" is not one of ["std", "range"]'
raise ValueError(msg)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ geographiclib
geojson
h5netcdf
jsonschema
numpy>=1.14,<2
numpy>=1.14
pandas
pyparsing
ruamel.yaml
Expand Down

0 comments on commit e60135b

Please sign in to comment.