Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2015

Conversation

ahaldane
Copy link
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
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
Copy link
Member

charris commented Oct 18, 2015

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