Skip to content

BUG: Fix iterator shape in advanced index assignment broadcast error#18404

Merged
mattip merged 1 commit intonumpy:masterfrom
seberg:issue-18401
Feb 22, 2021
Merged

BUG: Fix iterator shape in advanced index assignment broadcast error#18404
mattip merged 1 commit intonumpy:masterfrom
seberg:issue-18401

Conversation

@seberg
Copy link
Member

@seberg seberg commented Feb 12, 2021

The reported shape always missed the transpose operation, this refactors
the transpose getting out and applies it in the error path.

Closes gh-18401, gh-5710

The reported shape always missed the transpose operation, this refactors
the transpose getting out and applies it in the error path.

Closes numpygh-18401, numpygh-5710
Copy link
Member

@mattip mattip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, +/- bikeshedding the function name

@mattip mattip merged commit 68e4d56 into numpy:master Feb 22, 2021
@mattip
Copy link
Member

mattip commented Feb 22, 2021

Thanks @seberg

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error message confusing when assigning to array with array of wrong shape

2 participants