diff options
Diffstat (limited to 'numpy/fft/fftpack.py')
-rw-r--r-- | numpy/fft/fftpack.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/fft/fftpack.py b/numpy/fft/fftpack.py index fb7c19dd5..5b0d326d1 100644 --- a/numpy/fft/fftpack.py +++ b/numpy/fft/fftpack.py @@ -36,6 +36,8 @@ def _raw_fft(a, n=None, axis=-1, init_function=fftpack.cffti, a = asarray(a) if n == None: n = a.shape[axis] + + if n < 1: raise ValueError("Invalid number of FFT data points (%d) specified." % n) try: wsave = fft_cache[n] |