[Numpy-discussion] bug is arr.real for byteswapped array
haase at msg.ucsf.edu
Mon Aug 21 20:09:43 CDT 2006
We just spend some time debugging some numpy image analysis code
where we finally noticed that our file was byte-swapped ;-).
Even though we got much crazier numbers,
the test below already shows one bug in the a.real.max() line.
My numpy.__version__ is '1.0b3.dev3015' and this is run on pentium (little
endian) Linux (both 64bit and 32bit version give same results):
>>> a = N.arange(4, dtype='>c8')
[ 0. +0.00000000e+00j 0. +1.00000000e+00j 0. +2.00000000e+00j
>>> a = N.arange(4, dtype='<c8')
Can someone test this on a newer SVN version ?
More information about the Numpy-discussion