diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-08-29 17:56:21 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-08-29 17:56:21 +0000 |
commit | 63326185c04be2795a7a33028d427e9c8c31c900 (patch) | |
tree | 62fb5b9f5f7b6e518346fa0893e408fa24755021 /numpy/lib/function_base.py | |
parent | 064c8eb43637e920f6019215b00ef1593d74b0c1 (diff) | |
download | numpy-63326185c04be2795a7a33028d427e9c8c31c900.tar.gz |
Clean-up some un-needed default axes. Fix default axes of ma.sum and ma.product
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index a202f67cb..a14a3dc9f 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -540,9 +540,9 @@ def extract(condition, arr): """Return the elements of ravel(arr) where ravel(condition) is True (in 1D). - Equivalent to compress(ravel(condition), ravel(arr),0). + Equivalent to compress(ravel(condition), ravel(arr)). """ - return _nx.take(ravel(arr), nonzero(ravel(condition))[0],axis=0) + return _nx.take(ravel(arr), nonzero(ravel(condition))[0]) def place(arr, mask, vals): """Similar to putmask arr[mask] = vals but the 1D array vals has the |