[Scipy-svn] r4832 - trunk/scipy/stats/tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Sat Oct 25 05:26:36 EDT 2008
Author: cdavid
Date: 2008-10-25 04:26:32 -0500 (Sat, 25 Oct 2008)
New Revision: 4832
Modified:
trunk/scipy/stats/tests/test_stats.py
Log:
BUG: Fix bug 760. median was using old numpy.median behavior wrt axis argument.
Modified: trunk/scipy/stats/tests/test_stats.py
===================================================================
--- trunk/scipy/stats/tests/test_stats.py 2008-10-25 09:13:34 UTC (rev 4831)
+++ trunk/scipy/stats/tests/test_stats.py 2008-10-25 09:26:32 UTC (rev 4832)
@@ -694,6 +694,7 @@
assert_equal(stats.median(a3),3.5)
def test_axis(self):
+ """Regression test for #760."""
a1 = np.array([[3,4,5], [10,-3,-5]])
assert_equal(stats.median(a1), np.array([6.5, 0.5, 0.]))
assert_equal(stats.median(a1, axis=-1), np.array([4., -3]))
More information about the Scipy-svn
mailing list