[Scipy-svn] r4866 - trunk/scipy/ndimage

scipy-svn at scipy.org scipy-svn at scipy.org
Sat Nov 1 07:35:07 EDT 2008


Author: stefan
Date: 2008-11-01 06:35:01 -0500 (Sat, 01 Nov 2008)
New Revision: 4866

Modified:
   trunk/scipy/ndimage/morphology.py
Log:
Remove unused code generate_binary_structure [patch by Pieter Holtzhausen].


Modified: trunk/scipy/ndimage/morphology.py
===================================================================
--- trunk/scipy/ndimage/morphology.py	2008-11-01 11:27:41 UTC (rev 4865)
+++ trunk/scipy/ndimage/morphology.py	2008-11-01 11:35:01 UTC (rev 4866)
@@ -78,7 +78,6 @@
             return numpy.array(0, dtype = bool)
         else:
             return numpy.array(1, dtype = bool)
-    output = numpy.zeros([3] * rank, bool)
     output = numpy.fabs(numpy.indices([3] * rank) - 1)
     output = numpy.add.reduce(output, 0)
     return numpy.asarray(output <= connectivity, dtype = bool)




More information about the Scipy-svn mailing list