problems with index arrays and byte order
Greetings, The following example was uncovered by a pyfits user during testing. It appears that there is a significant problem with index array handling byte order properly. Example:
import numpy a = numpy.array([1,2,3,4,5,6],'>f8') a[3:5] array([ 4., 5.]) a[[3,4]] array([ 2.05531309e-320, 2.56123631e-320]) a[numpy.array([3,4])] array([ 2.05531309e-320, 2.56123631e-320]) numpy.__version__ '0.9.7.2477'
This test was conducted on a Red Hat Enterprise system. Chris
Hello all The issue Chris mentioned seems to be fixed in r2487 (did this happen in r2480 or was it another change that fixed it?). http://projects.scipy.org/scipy/numpy/changeset/2480
import numpy a = numpy.array([1,2,3,4,5,6],'>f8') a[3:5] array([ 4., 5.])
a[[3,4]] array([ 4., 5.]) a[numpy.array([3,4])] array([ 4., 5.]) numpy.__version__ '0.9.7.2487'
Regards, Albert
-----Original Message----- From: numpy-discussion-admin@lists.sourceforge.net [mailto:numpy- discussion-admin@lists.sourceforge.net] On Behalf Of Christopher Hanley Sent: 08 May 2006 22:50 To: numpy-discussion Subject: [Numpy-discussion] problems with index arrays and byte order
Greetings,
The following example was uncovered by a pyfits user during testing. It appears that there is a significant problem with index array handling byte order properly.
Example:
import numpy a = numpy.array([1,2,3,4,5,6],'>f8') a[3:5] array([ 4., 5.]) a[[3,4]] array([ 2.05531309e-320, 2.56123631e-320]) a[numpy.array([3,4])] array([ 2.05531309e-320, 2.56123631e-320]) numpy.__version__ '0.9.7.2477'
This test was conducted on a Red Hat Enterprise system.
Chris
participants (2)
-
Albert Strasheim
-
Christopher Hanley