summaryrefslogtreecommitdiff
path: root/numpy/fft
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-02-16 21:36:38 -0800
committerEric Wieser <wieser.eric@gmail.com>2018-02-16 22:23:51 -0800
commite441c291b2e10c8de85a9d950d0add552d0ebd83 (patch)
treee407fc2b65b888c13f17bcb1e2654f990c2932b2 /numpy/fft
parent5c5a215fa1101479ae9b8d127be32679c9f3f105 (diff)
downloadpython-numpy-e441c291b2e10c8de85a9d950d0add552d0ebd83.tar.gz
python-numpy-e441c291b2e10c8de85a9d950d0add552d0ebd83.tar.bz2
python-numpy-e441c291b2e10c8de85a9d950d0add552d0ebd83.zip
MAINT: Stop using non-tuple indices internally
By not using this type of indexing, it becomes easier for subclasses to override indexing in a way that works correctly with numpy functions. These locations were found by deprecating the behavior in question, which is deliberately not part of this commit
Diffstat (limited to 'numpy/fft')
-rw-r--r--numpy/fft/fftpack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/fft/fftpack.py b/numpy/fft/fftpack.py
index bd116b9cb..e17e1cb34 100644
--- a/numpy/fft/fftpack.py
+++ b/numpy/fft/fftpack.py
@@ -69,13 +69,13 @@ def _raw_fft(a, n=None, axis=-1, init_function=fftpack.cffti,
if s[axis] > n:
index = [slice(None)]*len(s)
index[axis] = slice(0, n)
- a = a[index]
+ a = a[tuple(index)]
else:
index = [slice(None)]*len(s)
index[axis] = slice(0, s[axis])
s[axis] = n
z = zeros(s, a.dtype.char)
- z[index] = a
+ z[tuple(index)] = a
a = z
if axis != -1: