Skip to content

Commit

Permalink
Merge pull request #160 from aidanmontare-fed/fix-deprecated-bool8
Browse files Browse the repository at this point in the history
remove usage of deprecated np.bool8 in tau_reduction
  • Loading branch information
aewallin committed May 4, 2024
2 parents 3787eb5 + b94bd46 commit 022fe77
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 022fe77

Please sign in to comment.