diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-04-12 22:49:00 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-04-12 22:49:00 +0000 |
commit | ec554d0caee4fb34122533eb630e7130e5568db3 (patch) | |
tree | 0d5c417ef355aaf07da68aa66c324f8e82d24f20 /numpy/lib/arraysetops.py | |
parent | 5534a9987fa9b916a4c035220a3fb488bd315753 (diff) | |
download | numpy-ec554d0caee4fb34122533eb630e7130e5568db3.tar.gz |
Fixed where to always return a tuple
Diffstat (limited to 'numpy/lib/arraysetops.py')
-rw-r--r-- | numpy/lib/arraysetops.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/arraysetops.py b/numpy/lib/arraysetops.py index 5b88acd6c..7bd666029 100644 --- a/numpy/lib/arraysetops.py +++ b/numpy/lib/arraysetops.py @@ -117,7 +117,7 @@ def setmember1d( ar1, ar2 ): aux2 = tt.take(perm) flag = ediff1d( aux, 1 ) == 0 - ii = numpy.where( flag * aux2 ) + ii = numpy.where( flag * aux2 )[0] aux = perm[ii+1] perm[ii+1] = perm[ii] perm[ii] = aux |