diff options
author | Joseph Fox-Rabinovitz <joseph.r.fox-rabinovitz@nasa.gov> | 2016-02-18 14:12:17 -0500 |
---|---|---|
committer | Joseph Fox-Rabinovitz <jfoxrabinovitz@gmail.com> | 2016-02-22 21:44:54 -0500 |
commit | c5e01fa725e5e7c1993b7eec401fa31be8580420 (patch) | |
tree | 2fefc699e8030078ffb7bc2d43a8442d242e04e2 /numpy/lib/function_base.py | |
parent | e5c1ac175722bc58e74aac4e6d9138adf9260ec6 (diff) | |
download | numpy-c5e01fa725e5e7c1993b7eec401fa31be8580420.tar.gz |
TST: Fixed shuffle axis in tests.
Since shuffle only works along the first dimension, it must be done before
reshape to get reasonable looking data. Did not affect the current tests. I
noticed while working on some scipy code.
Also, made a couple of doc changes to np.random.shuffle.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 7f80e424c..12fa4049b 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3277,7 +3277,7 @@ def _ureduce(a, func, **kwargs): a : array_like Input array or object that can be converted to an array. func : callable - Reduction function Kapable of receiving an axis argument. + Reduction function capable of receiving a single axis argument. It is is called with `a` as first argument followed by `kwargs`. kwargs : keyword arguments additional keyword arguments to pass to `func`. |