[Scipy-svn] r4697 - trunk/scipy/stats

scipy-svn@scip... scipy-svn@scip...
Mon Sep 8 00:01:55 CDT 2008


Author: pierregm
Date: 2008-09-08 00:01:53 -0500 (Mon, 08 Sep 2008)
New Revision: 4697

Modified:
   trunk/scipy/stats/mstats.py
Log:
mstats.mode: make sure that mode returns a tuple.

Modified: trunk/scipy/stats/mstats.py
===================================================================
--- trunk/scipy/stats/mstats.py	2008-09-08 05:01:06 UTC (rev 4696)
+++ trunk/scipy/stats/mstats.py	2008-09-08 05:01:53 UTC (rev 4697)
@@ -265,7 +265,7 @@
         output = _mode1D(ma.ravel(a))
     else:
         output = ma.apply_along_axis(_mode1D, axis, a)
-    return output
+    return tuple(output)
 mode.__doc__ = stats.mode.__doc__
 
 



More information about the Scipy-svn mailing list