[Scipy-svn] r2841 - trunk/Lib/stsci/image/lib

scipy-svn at scipy.org scipy-svn at scipy.org
Mon Mar 12 09:24:45 EDT 2007


Author: chanley
Date: 2007-03-12 08:24:42 -0500 (Mon, 12 Mar 2007)
New Revision: 2841

Modified:
   trunk/Lib/stsci/image/lib/combine.py
Log:
removed un-necessary axis=0 argument

Modified: trunk/Lib/stsci/image/lib/combine.py
===================================================================
--- trunk/Lib/stsci/image/lib/combine.py	2007-03-09 22:18:37 UTC (rev 2840)
+++ trunk/Lib/stsci/image/lib/combine.py	2007-03-12 13:24:42 UTC (rev 2841)
@@ -71,7 +71,7 @@
     return _combine_f("median", arrays, output, outtype, nlow, nhigh, badmasks)
 
 def average( arrays, output=None, outtype=None, nlow=0, nhigh=0, badmasks=None):
-    """average(,axis=0) nominally computes the average pixel value for a stack of
+    """average() nominally computes the average pixel value for a stack of
     identically shaped images.
 
     arrays     specifies a sequence of inputs arrays, which are nominally a
@@ -97,7 +97,7 @@
     >>> a = num.arange(4)
     >>> a = a.reshape((2,2))
     >>> arrays = [a*16, a*4, a*2, a*8]
-    >>> average(arrays,axis=0)
+    >>> average(arrays)
     array([[ 0,  7],
            [15, 22]])
     >>> average(arrays, nhigh=1)




More information about the Scipy-svn mailing list