diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2017-02-24 16:46:58 +0000 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2017-02-24 16:46:58 +0000 |
commit | 48783e5ceb7f60c33db81ab72e5024f42b220990 (patch) | |
tree | 2284b780e521418b0e73fd7283403d3e7e28da50 /numpy/fft/helper.py | |
parent | 5f5ccecbfc116284ed8c8d53cd8b203ceef5f7c7 (diff) | |
download | python-numpy-48783e5ceb7f60c33db81ab72e5024f42b220990.tar.gz python-numpy-48783e5ceb7f60c33db81ab72e5024f42b220990.tar.bz2 python-numpy-48783e5ceb7f60c33db81ab72e5024f42b220990.zip |
MAINT: replace len(x.shape) with x.ndim
Diffstat (limited to 'numpy/fft/helper.py')
-rw-r--r-- | numpy/fft/helper.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/fft/helper.py b/numpy/fft/helper.py index 0832bc5a4..0856d6759 100644 --- a/numpy/fft/helper.py +++ b/numpy/fft/helper.py @@ -64,7 +64,7 @@ def fftshift(x, axes=None): """ tmp = asarray(x) - ndim = len(tmp.shape) + ndim = tmp.ndim if axes is None: axes = list(range(ndim)) elif isinstance(axes, integer_types): @@ -113,7 +113,7 @@ def ifftshift(x, axes=None): """ tmp = asarray(x) - ndim = len(tmp.shape) + ndim = tmp.ndim if axes is None: axes = list(range(ndim)) elif isinstance(axes, integer_types): |