Skip to content

Commit

Permalink
avoid overflow encountered in short_scalers warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Myke Cuthbert committed Oct 26, 2019
1 parent 66d2632 commit a4b3201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music21/audioSearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def autocorrelationFunction(recordedSignal, recordSampleRateIn):
# numpy warns scipy that oldnumeric will be dropped soon.
warnings.simplefilter('ignore', DeprecationWarning)
# noinspection PyPackageRequirements
from scipy.signal import convolve # will call fftconvolve if faster
from scipy.signal import fftconvolve as convolve
except ImportError:
warnings.warn('Running convolve without scipy -- will be slower')
convolve = numpy.convolve
Expand Down

0 comments on commit a4b3201

Please sign in to comment.