diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2011-03-22 14:55:14 +0100 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2011-03-23 09:07:28 +0100 |
commit | 3d00f4a5c5cfc5dc089a3f3625d12ef75ded14ed (patch) | |
tree | bbd3336c4f76f17520be4672c49245eb91edc9e5 /numpy/core/_internal.py | |
parent | 411adbafb0bebf3d6bff32dd947661eea874cf58 (diff) | |
download | numpy-3d00f4a5c5cfc5dc089a3f3625d12ef75ded14ed.tar.gz |
DEP: change behavior of out-of-order selection of recarray fields by name.
This was deprecated in Numpy 1.5, see ticket #1431.
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r-- | numpy/core/_internal.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py index 1785f63a9..67ca1716f 100644 --- a/numpy/core/_internal.py +++ b/numpy/core/_internal.py @@ -335,13 +335,7 @@ def _newnames(datatype, order): def _index_fields(ary, fields): from multiarray import empty, dtype dt = ary.dtype - new_dtype = [(name, dt[name]) for name in dt.names if name in fields] - future_dtype = [(name, dt[name]) for name in fields if name in dt.names] - if not new_dtype == future_dtype: - depdoc = "Out of order field selection on recarrays currently returns \ -fields in order. This behavior is deprecated in numpy 1.5 and will change in \ -2.0. See ticket #1431." - warnings.warn(depdoc, DeprecationWarning) + new_dtype = [(name, dt[name]) for name in fields if name in dt.names] if ary.flags.f_contiguous: order = 'F' else: |