Skip to content

BUG: Only replace dtype temporarily if dimensions changed#24103

Merged
mattip merged 2 commits intonumpy:mainfrom
seberg:issue-24043
Jul 5, 2023
Merged

BUG: Only replace dtype temporarily if dimensions changed#24103
mattip merged 2 commits intonumpy:mainfrom
seberg:issue-24043

Conversation

@seberg
Copy link
Member

@seberg seberg commented Jul 3, 2023

For strings this is (currently) arguably not correct... Now of course strings shouldn't be changed to S0 probably, but that is a different matter.

It seems there is something odd (possibly I just kept it as a corner case) for coercion from object arrays.

Tests should cover the paths I think (lets see what CI says) but I couldn't reliably trigger failures for all paths.

Closes gh-24043

For strings this is (currently) arguably not correct... Now of course
strings shouldn't be changed to S0 probably, but that is a different
matter.

It seems there is something odd (possibly I just kept it as a corner
case) for coercion from object arrays.

Tests should cover the paths I think (lets see what CI says) but
I couldn't reliably trigger failures for all paths.

Closes numpygh-24043
@seberg seberg added 00 - Bug 09 - Backport-Candidate PRs tagged should be backported labels Jul 3, 2023
@ngoldbaum
Copy link
Member

The pyiodide failure and 32 bit windows failures are real, it looks like.

@mattip mattip merged commit 8868eeb into numpy:main Jul 5, 2023
@mattip
Copy link
Member

mattip commented Jul 5, 2023

Thanks @seberg

@seberg seberg deleted the issue-24043 branch July 5, 2023 06:50
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jul 5, 2023
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.

BUG: np.array([b""], dtype=object).astype("S") changes element values in 1.25.0

4 participants