Skip to content

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

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

charris
Copy link
Member

@charris charris commented Oct 18, 2015

Backport #6500.

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
@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
backport 6500: BUG: recarrays viewed as subarrays don't convert to np.record type
@charris charris merged commit a307d81 into numpy:maintenance/1.10.x Oct 18, 2015
@charris charris deleted the backport-6500 branch October 18, 2015 21:38
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.

2 participants