Skip to content

Commit

Permalink
remove usage of deprecated np.bool8 in tau_reduction
Browse files Browse the repository at this point in the history
np.bool8 is an alias for np.bool_

np.bool8 was deprecated in numpy 1.24.0

https://numpy.org/doc/stable/release/1.24.0-notes.html#np-str0-and-similar-are-now-deprecated
  • Loading branch information
aidanmontare-fed committed May 3, 2024
1 parent 8faefa9 commit b94bd46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allantools/allantools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1946,7 +1946,7 @@ def tau_reduction(ms, rate, n_per_decade):
"""
ms = np.int64(ms)
keep = np.bool8(np.rint(n_per_decade*np.log10(ms[1:])) -
keep = np.bool_(np.rint(n_per_decade*np.log10(ms[1:])) -
np.rint(n_per_decade*np.log10(ms[:-1])))
# Adjust ms size to fit above-defined mask
ms = ms[:-1]
Expand Down

0 comments on commit b94bd46

Please sign in to comment.