Open sevagh opened 3 years ago
Perhaps something changed in numpy since the last time the code was written?
https://github.com/danilobellini/audiolazy/blob/master/audiolazy/lazy_analysis.py#L789
If I add .take()
here, the array passed to numpy is correct and the thing works:
# Normalization to the [-1; 1] range
if normalize:
steps = Stream(wnd).blocks(hop).map(np.array).take()
#print(steps)
gain = np.sum(np.abs(np.vstack(steps)), 0).max()
if gain: # If gain is zero, normalization couldn't have any effect
wnd = wnd / gain # Can't use "/=" nor "*=" as Numpy would keep datatype
Hello,
I tried both the robotize and roll magnitude examples and experienced the same error. From robotize:
The stacktrace shows Python 3.8, so I downgraded to 3.6 and get the same error.
Thanks.