[Scipy-svn] r3157 - trunk/Lib/ndimage

scipy-svn@scip... scipy-svn@scip...
Tue Jul 10 12:36:08 CDT 2007


Author: chanley
Date: 2007-07-10 12:36:06 -0500 (Tue, 10 Jul 2007)
New Revision: 3157

Modified:
   trunk/Lib/ndimage/_ni_support.py
Log:
Fix byteswapping problem in rotate for ndimage.

Modified: trunk/Lib/ndimage/_ni_support.py
===================================================================
--- trunk/Lib/ndimage/_ni_support.py	2007-07-10 01:53:10 UTC (rev 3156)
+++ trunk/Lib/ndimage/_ni_support.py	2007-07-10 17:36:06 UTC (rev 3157)
@@ -77,7 +77,7 @@
     if shape is None:
         shape = input.shape
     if output is None:
-        output = numpy.zeros(shape, dtype = input.dtype)
+        output = numpy.zeros(shape, dtype = input.dtype.name)
         return_value = output
     elif type(output) in [type(types.TypeType), type(numpy.zeros((4,)).dtype)]:
         output = numpy.zeros(shape, dtype = output)



More information about the Scipy-svn mailing list