From c5e01fa725e5e7c1993b7eec401fa31be8580420 Mon Sep 17 00:00:00 2001 From: Joseph Fox-Rabinovitz Date: Thu, 18 Feb 2016 14:12:17 -0500 Subject: 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. --- numpy/lib/function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/function_base.py') 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`. -- cgit v1.2.1