Closed ghost closed 10 years ago
See the latest commit. nfft will default to the next greatest power of 2 than the number of time points if the user doesn't specify it. If what the user specifies is less than the number of time points, they should get a warning that it's going back to the default value (via logger.warn, but see if I implemented it correctly for the _get_nfft function)
OK, I'm noticing a warning now that I was not getting prior to the upstream merge I did.
/home/lennyv/virtualenvs/scipy_opt/local/lib/python2.7/site-packages/scipy/spatial/init.py:91: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility from .qhull import *
scipy/spatial ?
For which import are you getting the warning?
"For which import are you getting the warning?"
It has to do with the dpss changeover; the warning goes away when i change:
from .dpss import dpss_windows
to
from nitime.algorithms import dpss_windows
FWIW, I'm running numpy 1.8.0, scipy 0.13.3, nitime 0.4, all installed via pip.
@lennyvarghese .. Ok... So I merged this PR.... As far as the nfft issue goes, I thought just putting the _validate_parameters(.) call immediately after the _get_nfft(.) call would do it?
I'll look into the import issue for the new dpss.. doesn't ring a bell yet... I can work on the doc later today...
Thanks a lot!
See commit comments.