From fd878cb92fb7c93ba3c434e2fdf9991b5acfd2bf Mon Sep 17 00:00:00 2001 From: David Nicholson Date: Fri, 9 Apr 2021 15:34:48 -0400 Subject: [PATCH] BUG: use `dpss` instead of `slepian` in audiofileIO.py note that this merely fixes an AttributeError, `AttributeError: module 'scipy.signal' has no attribute 'slepian'` There's a deeper issue with whether I'm calling `dpss` with the right values, see https://github.com/NickleDave/hybrid-vocal-classifier/issues/91 --- src/hvc/audiofileIO.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hvc/audiofileIO.py b/src/hvc/audiofileIO.py index ae109ad..a934833 100644 --- a/src/hvc/audiofileIO.py +++ b/src/hvc/audiofileIO.py @@ -182,7 +182,7 @@ def __init__(self, if window == 'Hann': self.window = np.hanning(self.nperseg) elif window == 'dpss': - self.window = scipy.signal.slepian(self.nperseg, 4 / self.nperseg) + self.window = scipy.signal.windows.dpss(self.nperseg, 4 / self.nperseg) if freq_cutoffs is None: self.freqCutoffs = None