-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
BUG : fix scaling issue with mlab.psd and odd NFFT #4326
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
BUG : fix scaling issue with mlab.psd and odd NFFT #4326
Conversation
Sensible. Should this have a test? |
We don't have any other tests on mlab... On Sun, Apr 12, 2015, 05:55 Jens Hedegaard Nielsen notifications@github.com
|
# if we have a even number of frequencies, don't scale NFFT/2 | ||
if not NFFT % 2: | ||
slc = slice(1, -1, None) | ||
print(NFFT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover print?
Im not sure if we need a test for this but the tests in https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/tests/test_mlab.py are for mlab? |
Ah, I would be wrong about the tests and yes, left over prints. |
@jenshnielsen Test added + prints nuked. Thanks for keeping me honest! |
Great. Will merge when Travis goes green |
BUG : fix scaling issue with mlab.psd and odd NFFT
closes #4324