Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting the spectrum in stft model does not work. (with fix) #52

Closed
matz78 opened this issue Apr 15, 2017 · 2 comments
Closed

Plotting the spectrum in stft model does not work. (with fix) #52

matz78 opened this issue Apr 15, 2017 · 2 comments

Comments

@matz78
Copy link

matz78 commented Apr 15, 2017

When I try to plot the result of stft, the spectrum is missing, and in
software/models_interface/stft_function.py
in lines 59 and 70 I got the error 'TypeError: slice indices must be integers or None or have an index method'
I could fix it by casting the index to int, and now the plot works again
l. 59 plt.pcolormesh(frmTime, binFreq, np.transpose(mX[:,:int(Nmaxplotfreq/fs+1)]))
l. 70 plt.pcolormesh(frmTime, binFreq, np.transpose(np.diff(pX[:,:int(N
maxplotfreq/fs+1)],axis=1)))

@DavidAntliff
Copy link

This is a duplicate of #49

@xserra
Copy link
Member

xserra commented Aug 14, 2017

fixed

@xserra xserra closed this as completed Aug 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants