[Numpy-svn] [numpy/numpy] 3a816a: BUG: recarrays viewed as subarrays don't convert t...
GitHub
noreply at github.com
Sun Oct 18 12:40:29 EDT 2015
Branch: refs/heads/master
Home: https://github.com/numpy/numpy
Commit: 3a816a4db9b498eb64eb837fdcca0fa8ddbe063e
https://github.com/numpy/numpy/commit/3a816a4db9b498eb64eb837fdcca0fa8ddbe063e
Author: Allan Haldane <allan.haldane at gmail.com>
Date: 2015-10-17 (Sat, 17 Oct 2015)
Changed paths:
M numpy/core/records.py
M numpy/core/tests/test_records.py
Log Message:
-----------
BUG: recarrays viewed as subarrays don't convert to np.record type
Record array views were updated in #5943 to return np.record dtype
where possible, but forgot about the case of sub-arrays.
That's fixed here, so accessing subarray fields by attribute or index
works sensibly, as well as viewing a record array as a subarray dtype,
and printing subarrays.
This also happens to fix #6459, since it affects the same lines.
Fixes #6497 #6459
Commit: 8cf83ee92aaba5a802799b752621f7c413cace34
https://github.com/numpy/numpy/commit/8cf83ee92aaba5a802799b752621f7c413cace34
Author: Charles Harris <charlesr.harris at gmail.com>
Date: 2015-10-18 (Sun, 18 Oct 2015)
Changed paths:
M numpy/core/records.py
M numpy/core/tests/test_records.py
Log Message:
-----------
Merge pull request #6500 from ahaldane/recarray_view_fix
BUG: recarrays viewed as subarrays don't convert to np.record type
Compare: https://github.com/numpy/numpy/compare/c9dcd91ed1e2...8cf83ee92aab
More information about the Numpy-svn
mailing list