[Scipy-tickets] [SciPy] #455: ndimage.rotate byteorder swapped (and other weirdness)

SciPy scipy-tickets@scipy....
Tue Jul 3 11:14:27 CDT 2007


#455: ndimage.rotate byteorder swapped (and other weirdness)
---------------------------+------------------------------------------------
 Reporter:  chanley        |        Owner:  somebody
     Type:  defect         |       Status:  new     
 Priority:  high           |    Milestone:          
Component:  scipy.ndimage  |      Version:          
 Severity:  blocker        |   Resolution:          
 Keywords:  ndimage        |  
---------------------------+------------------------------------------------
Changes (by chanley):

  * priority:  normal => high
  * severity:  normal => blocker
  * summary:  ndimage.rotate weirdness => ndimage.rotate byteorder swapped
              (and other weirdness)

Comment:

 In addition to the problem described above, rotate does swap byteorder
 incorrectly.  Example is below:

 {{{

 >>> a = N.ones ((2,3), dtype=N.float32) * 12.3
 >>> a = a.byteswap()
 >>> a.dtype = a.dtype.newbyteorder (">")
 >>> print a
 [[ 12.30000019  12.30000019  12.30000019]
 [ 12.30000019  12.30000019  12.30000019]]
 >>> print ndimage.rotate (a, 90.)
 [[  0.00000000e+00  -4.28378144e+08]
 [  0.00000000e+00  -4.28378144e+08]
 [ -4.28378144e+08  -4.28378144e+08]]
 }}}

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


More information about the Scipy-tickets mailing list