bmcfee / muda

A library for augmenting annotated audio data
ISC License
230 stars 33 forks source link

Add explicit int cast in pitch.py #43

Closed justinsalamon closed 7 years ago

justinsalamon commented 7 years ago
/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?

bmcfee commented 7 years ago

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?