Closed dojochu closed 7 years ago
In compute_melgram() function, just need to make sure you provide integer values for the indices
compute_melgram()
Adapt Line 31: src = src[(n_sample - n_sample_fit) / 2:(n_sample + n_sample_fit) / 2]
src = src[(n_sample - n_sample_fit) / 2:(n_sample + n_sample_fit) / 2]
To: src = src[int((n_sample - n_sample_fit) / 2):(int(n_sample + n_sample_fit) / 2)]
src = src[int((n_sample - n_sample_fit) / 2):(int(n_sample + n_sample_fit) / 2)]
I think both n_sample and n_sample_fit are always integers.
n_sample
n_sample_fit
In
compute_melgram()
function, just need to make sure you provide integer values for the indicesAdapt Line 31:
src = src[(n_sample - n_sample_fit) / 2:(n_sample + n_sample_fit) / 2]
To:
src = src[int((n_sample - n_sample_fit) / 2):(int(n_sample + n_sample_fit) / 2)]