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

scipy-svn@scip... scipy-svn@scip...
Sat Sep 11 19:55:48 CDT 2010


Author: ptvirtan
Date: 2010-09-11 19:55:48 -0500 (Sat, 11 Sep 2010)
New Revision: 6741

Modified:
   trunk/scipy/ndimage/interpolation.py
Log:
3K: ndimage: fix integer division in rotate

Modified: trunk/scipy/ndimage/interpolation.py
===================================================================
--- trunk/scipy/ndimage/interpolation.py	2010-09-12 00:55:35 UTC (rev 6740)
+++ trunk/scipy/ndimage/interpolation.py	2010-09-12 00:55:48 UTC (rev 6741)
@@ -652,8 +652,8 @@
     else:
         coordinates = []
         size = numpy.product(input.shape,axis=0)
-        size /= input.shape[axes[0]]
-        size /= input.shape[axes[1]]
+        size //= input.shape[axes[0]]
+        size //= input.shape[axes[1]]
         for ii in range(input.ndim):
             if ii not in axes:
                 coordinates.append(0)



More information about the Scipy-svn mailing list