[NumPy-Tickets] [NumPy] #1431: accessing multiple fields in a recarray gives fields in wrong order
NumPy Trac
numpy-tickets@scipy....
Thu Aug 5 09:14:52 CDT 2010
#1431: accessing multiple fields in a recarray gives fields in wrong order
------------------------+---------------------------------------------------
Reporter: samtygier | Owner: somebody
Type: defect | Status: needs_review
Priority: normal | Milestone:
Component: numpy.core | Version:
Keywords: |
------------------------+---------------------------------------------------
Comment(by jseabold):
Looks good to me. Thanks for doing this!
{{{
In [2]: import numpy as np
In [3]: x =
np.array([(1.5,2.5,(1.0,2.0)),(3.,4.,(4.,5.)),(1.,3.,(2.,6.))],
...: dtype=[('x','f4'),('y',np.float32),('value','f4',(2,2))])
In [4]:
In [5]: x[['y','x']]
/usr/local/lib/python2.6/dist-packages/numpy/core/_internal.py:344:
DeprecationW
arning: Out of order field selection on recarrays currently returns fields
in or
der. This behavior is deprecated in numpy 1.5 and will change in 2.0. See
ticket
#1431.
warnings.warn(depdoc, DeprecationWarning)
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1431#comment:7>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list