summaryrefslogtreecommitdiff
path: root/numpy/core/ma.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-03-30 18:19:07 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-03-30 18:19:07 +0000
commit9c6f421934530cda2e33487bae3295519335597c (patch)
tree523d8ee6e2078c756c105e10c7293692c2fa6602 /numpy/core/ma.py
parentef392181a8ed3e9f2646745b19aedbc3d1145c95 (diff)
downloadnumpy-9c6f421934530cda2e33487bae3295519335597c.tar.gz
Allow Boolean mask indexing for 0-d arrays.
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r--numpy/core/ma.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py
index d980fbf44..224cc4753 100644
--- a/numpy/core/ma.py
+++ b/numpy/core/ma.py
@@ -1264,14 +1264,6 @@ array(data = %(data)s,
value = numeric.array(value, dtype=object)
d = d.astype(object)
result = fromnumeric.choose(m, (d, value))
- except IndexError:
- #ok, if scalar
- if d.shape:
- raise
- elif m:
- result = numeric.array(value, dtype=d.dtype)
- else:
- result = d
return result
def ids (self):