Skip to content

BUG: revert detecting and raising error on ragged arrays #14341

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
Aug 23, 2019

Conversation

mattip
Copy link
Member

@mattip mattip commented Aug 23, 2019

Reverts gh-13913 since it has false-positives in detection of ragged arrays (for instance np.array([1, np.array([5])], dtype=int)

Fixes gh-14138, reopens gh-5303 and gh-6584.

The correct fix is to add this corner case and make sure discover_dimensions does not set is_object when it does not need to.

@seberg
Copy link
Member

seberg commented Aug 23, 2019

Thanks matti, lets put this in.

@seberg seberg merged commit dc7af64 into numpy:master Aug 23, 2019
@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Aug 23, 2019
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Aug 23, 2019
@charris charris removed this from the 1.17.1 release milestone Aug 23, 2019
@charris
Copy link
Member

charris commented Aug 23, 2019

Remove the backport-candidate label, the reverted change never made it into 1.17.x.

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.

BUG: New ragged array message has false positives
3 participants