bmcfee/muda

Add explicit int cast in pitch.py

justinsalamon opened this issue · 1 comments

/home/js7561/dev/librosa/librosa/core/pitch.py:157: DeprecationWarning: object of type <class 'numpy.float64'> cannot be safely interpreted as an integer.
  bins = np.linspace(-0.5, 0.5, np.ceil(1./resolution), endpoint=False)

Explicitly casting the output of np.ceil to int should fix this, yeah?

Explicitly casting the output of np.ceil to int should fix this, yeah?

edit:

Err, this is a librosa warning, and should already have been fixed in 0.5.0. I don't think this one has anything to do with muda. Can you confirm?