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

scipy-svn at scipy.org scipy-svn at scipy.org
Mon May 31 19:48:25 EDT 2010


Author: oliphant
Date: 2010-05-31 18:48:25 -0500 (Mon, 31 May 2010)
New Revision: 6459

Modified:
   trunk/scipy/stats/distributions.py
Log:
Only compute the moments actually requested in _stats.

Modified: trunk/scipy/stats/distributions.py
===================================================================
--- trunk/scipy/stats/distributions.py	2010-05-31 23:40:00 UTC (rev 6458)
+++ trunk/scipy/stats/distributions.py	2010-05-31 23:48:25 UTC (rev 6459)
@@ -1267,8 +1267,7 @@
 
         signature = inspect.getargspec(self._stats.im_func)
         if (signature[2] is not None) or ('moments' in signature[0]):
-            #this did not fetch mv, adjust to also get mv
-            mu, mu2, g1, g2 = self._stats(*args,**{'moments':moments+'mv'})
+            mu, mu2, g1, g2 = self._stats(*args,**{'moments':moments})
         else:
             mu, mu2, g1, g2 = self._stats(*args)
         if g1 is None:




More information about the Scipy-svn mailing list