diff options
Diffstat (limited to 'numpy/fft/fftpack.py')
-rw-r--r-- | numpy/fft/fftpack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/fft/fftpack.py b/numpy/fft/fftpack.py index 2f19ba3d8..80d21ec1d 100644 --- a/numpy/fft/fftpack.py +++ b/numpy/fft/fftpack.py @@ -511,7 +511,7 @@ def _cook_nd_args(a, s=None, axes=None, invreal=0): if len(s) != len(axes): raise ValueError("Shape and axes have different lengths.") if invreal and shapeless: - s[axes[-1]] = (s[axes[-1]] - 1) * 2 + s[-1] = (a.shape[axes[-1]] - 1) * 2 return s, axes |