Skip to content

BUG: recarrays viewed as subarrays don't convert to np.record type - #6500

Merged
charris merged 1 commit into
numpy:masterfrom
ahaldane:recarray_view_fix
Oct 18, 2015
Merged

charris merged 1 commit into
numpy:masterfrom
ahaldane:recarray_view_fix

Conversation

@ahaldane

Copy link
Copy Markdown
Member

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

Record array views were updated in numpy#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 numpy#6459, since it affects the same lines.

Fixes numpy#6497 numpy#6459
@ahaldane

Copy link
Copy Markdown
Member Author

This bug was brought up on the mailing list in the post numpy 1.10.1 reduce operation on recarrays.

@charris charris added this to the 1.10.2 release milestone Oct 18, 2015
charris added a commit that referenced this pull request Oct 18, 2015
BUG: recarrays viewed as subarrays don't convert to np.record type
@charris
charris merged commit 8cf83ee into numpy:master Oct 18, 2015
@charris

charris commented Oct 18, 2015

Copy link
Copy Markdown
Member

Let's give it a shot. Thanks Allan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

numpy 1.10.1 reduce operation on recarrays error when making view of a recarray of an aligned record dtype

2 participants