Skip to content

Commit

Permalink
[src] drop deprecated np.float (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Dec 2, 2024
1 parent e15bb3f commit f3142cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asteroid_filterbanks/multiphase_gammatone_fb.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def generate_mpgtf(samplerate_hz, len_sec, n_filters):
# Generate all filters for all phase shifts
for phase_index in range(phase_pair_count[i]):
# First half of filtes: phase_shifts in [0,pi)
current_phase_shift = np.float(phase_index) / phase_pair_count[i] * np.pi
current_phase_shift = float(phase_index) / phase_pair_count[i] * np.pi
filterbank[index, :] = gammatone_impulse_response(
samplerate_hz,
len_sec,
Expand Down

0 comments on commit f3142cb

Please sign in to comment.