summaryrefslogtreecommitdiff
path: root/numpy/ma/core.py
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/ma/core.py
parent5c5a215fa1101479ae9b8d127be32679c9f3f105 (diff)
downloadnumpy-e441c291b2e10c8de85a9d950d0add552d0ebd83.tar.gz
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/ma/core.py')
-rw-r--r--numpy/ma/core.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index 698d39cda..6deff0ef4 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -5538,6 +5538,7 @@ class MaskedArray(ndarray):
else:
idx = list(np.ix_(*[np.arange(x) for x in self.shape]))
idx[axis] = sidx
+ idx = tuple(idx)
self[...] = self[idx]