You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the PeakDetection function I'm feeding a numpy.ndarray type of float64 and get the following error:
TypeError('essentia can currently only accept one-dimensional numpy arrays of dtype '
TypeError: essentia can currently only accept one-dimensional numpy arrays of dtype {"single", "int", "complex64"}
If it is not supported it would be a good enhancement because it is a very common data type.
The text was updated successfully, but these errors were encountered:
It happened the same to me yesterday with another algorithm. Essentia does not seem to be supporting float64, but float32. Two solutions worked for me:
# first solution
from numpy import array
new_array = array(old_array, dtype='float32')
# second solution (I prefer this one)
import essentia
new_array = essentia.array(old_array)
For the PeakDetection function I'm feeding a numpy.ndarray type of float64 and get the following error:
TypeError('essentia can currently only accept one-dimensional numpy arrays of dtype '
TypeError: essentia can currently only accept one-dimensional numpy arrays of dtype {"single", "int", "complex64"}
If it is not supported it would be a good enhancement because it is a very common data type.
The text was updated successfully, but these errors were encountered: