summaryrefslogtreecommitdiff
path: root/numpy/lib/index_tricks.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-05-28 22:22:28 -0700
committerEric Wieser <wieser.eric@gmail.com>2018-05-28 22:38:44 -0700
commit7bf34020951f2c99d390870b085843835057e4a7 (patch)
tree0a807dc91ab67976265b48aca403b3aa38289444 /numpy/lib/index_tricks.py
parentb1cb95414ec7dab6a452d8de6e9870dcf5eaedbc (diff)
downloadnumpy-7bf34020951f2c99d390870b085843835057e4a7.tar.gz
BUG: Avoid deprecated non-tuple indexing
np.ogrid was not tested anyway, so this was not caught.
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r--numpy/lib/index_tricks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py
index 43fdc5627..d2139338e 100644
--- a/numpy/lib/index_tricks.py
+++ b/numpy/lib/index_tricks.py
@@ -201,7 +201,7 @@ class nd_grid(object):
slobj = [_nx.newaxis]*len(size)
for k in range(len(size)):
slobj[k] = slice(None, None)
- nn[k] = nn[k][slobj]
+ nn[k] = nn[k][tuple(slobj)]
slobj[k] = _nx.newaxis
return nn
except (IndexError, TypeError):