Skip to content

Commit e1f0841

Browse files
athTps-F
andauthored
Replace deprecated Numpy function np.int. (#434)
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 <[email protected]>
1 parent fcce61b commit e1f0841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extract_f0_print.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def coarse_f0(self, f0):
8686
# use 0 or 1
8787
f0_mel[f0_mel <= 1] = 1
8888
f0_mel[f0_mel > self.f0_bin - 1] = self.f0_bin - 1
89-
f0_coarse = np.rint(f0_mel).astype(np.int)
89+
f0_coarse = np.rint(f0_mel).astype(int)
9090
assert f0_coarse.max() <= 255 and f0_coarse.min() >= 1, (
9191
f0_coarse.max(),
9292
f0_coarse.min(),

0 commit comments

Comments
 (0)