From e1f084177d83bf31f2d23559ba4a94a72040bb0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Thieme?= Date: Sat, 10 Jun 2023 16:55:34 +0200 Subject: [PATCH] Replace deprecated Numpy function `np.int`. (#434) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s an alias for just `int` and it’s being deprecated: https://numpy.org/devdocs/release/1.20.0-notes.html Co-authored-by: Ftps <63702646+Tps-F@users.noreply.github.com> --- extract_f0_print.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extract_f0_print.py b/extract_f0_print.py index 5a88613..bd6303e 100644 --- a/extract_f0_print.py +++ b/extract_f0_print.py @@ -86,7 +86,7 @@ class FeatureInput(object): # use 0 or 1 f0_mel[f0_mel <= 1] = 1 f0_mel[f0_mel > self.f0_bin - 1] = self.f0_bin - 1 - f0_coarse = np.rint(f0_mel).astype(np.int) + f0_coarse = np.rint(f0_mel).astype(int) assert f0_coarse.max() <= 255 and f0_coarse.min() >= 1, ( f0_coarse.max(), f0_coarse.min(),