[Scipy-tickets] [SciPy] #455: ndimage.rotate weirdness

SciPy scipy-tickets@scipy....
Mon Jul 2 21:22:07 CDT 2007


#455: ndimage.rotate weirdness
---------------------------+------------------------------------------------
 Reporter:  chanley        |       Owner:  somebody
     Type:  defect         |      Status:  new     
 Priority:  normal         |   Milestone:          
Component:  scipy.ndimage  |     Version:          
 Severity:  normal         |    Keywords:  ndimage 
---------------------------+------------------------------------------------
 An example:

 {{{
 > import numpy as n
 > from scipy import ndimage as nd
 > a = n.ones((10,5),dtype=n.float32) * 12.3
 > x = nd.rotate(a,90.0)
 > x
 Out[17]:
 array([[ 12.30000019,  12.30000019,  12.30000019,  12.30000019,
         12.30000019,  12.30000019,  12.30000019,  12.30000019,
          0.        ,   0.        ],
       [ 12.30000019,  12.30000019,  12.30000019,  12.30000019,
         12.30000019,  12.30000019,  12.30000019,  12.30000019,
         12.30000019,  12.30000019],
       [ 12.30000019,  12.30000019,  12.30000019,  12.30000019,
         12.30000019,  12.30000019,  12.30000019,  12.30000019,
         12.30000019,  12.30000019],
       [ 12.30000019,  12.30000019,  12.30000019,  12.30000019,
         12.30000019,  12.30000019,  12.30000019,  12.30000019,
         12.30000019,  12.30000019],
       [ 12.30000019,  12.30000019,  12.30000019,  12.30000019,
         12.30000019,  12.30000019,  12.30000019,  12.30000019,
         12.30000019,  12.30000019]], dtype=float32)
 }}}

 Notice that the last two entries of the first row are now 0.


 I have also had other reports of ndimage functions causing data to become
 byteswapped.  However I have not yet been able to replicate this problem.

 This problem occurs on a RHE3 system using python 2.5.1 and the very
 latest development version of numpy.

-- 
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/455>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list