Skip to content

Commit

Permalink
BUG: use dpss instead of slepian in audiofileIO.py
Browse files Browse the repository at this point in the history
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
#91
  • Loading branch information
NickleDave committed Apr 10, 2021
1 parent a5e6dc7 commit 39a6ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hvc/audiofileIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39a6ed3

Please sign in to comment.