Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cast to integer to get rid of numpy warning #3241

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

Merged
merged 11 commits into from
Aug 26, 2014
Prev Previous commit
Next Next commit
Integer division in mlab test
  • Loading branch information
jenshnielsen committed Jul 22, 2014
commit 8993188032f29bf94c2bb1e2aaefaab918354153
4 changes: 2 additions & 2 deletions lib/matplotlib/tests/test_mlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -1325,8 +1325,8 @@ def createStim(self, fstims, iscomplex, sides, nsides, len_x=None,

freqs_specgram = freqs_density
# time points for specgram
t_start = NFFT_specgram_real/2
t_stop = len(x) - NFFT_specgram_real/2+1
t_start = NFFT_specgram_real//2
t_stop = len(x) - NFFT_specgram_real//2+1
t_step = NFFT_specgram_real - nover_specgram_real
t_specgram = x[t_start:t_stop:t_step]
if NFFT_specgram_real % 2:
Expand Down