Skip to content

Commit 014432b

Browse files
committed
remove deprecated np.float and use np.float64
1 parent 5d73426 commit 014432b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pytsmod/utils/stft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def lsee_mstft(X, syn_hop, win_type, win_size, zero_pad, fft_shift,
180180
if restore_energy:
181181
xi_energy = np.sum(abs(xi))
182182
xiw_energy = np.sum(abs(xiw))
183-
xiw = xiw * (xi_energy / (xiw_energy + np.finfo(np.float).eps))
183+
xiw = xiw * (xi_energy / (xiw_energy + np.finfo(np.float64).eps))
184184

185185
x[win_pos[i]: win_pos[i] + win_len] += xiw
186186

0 commit comments

Comments
 (0)