From b94bd46783194de67c08fd510128459f4ceeebcc Mon Sep 17 00:00:00 2001 From: "Montare, Aidan A. (Fed)" Date: Fri, 3 May 2024 17:49:45 -0600 Subject: [PATCH] remove usage of deprecated np.bool8 in tau_reduction 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 --- allantools/allantools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allantools/allantools.py b/allantools/allantools.py index 583e97a..119168f 100644 --- a/allantools/allantools.py +++ b/allantools/allantools.py @@ -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]