Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Correct numpy dtype comparisons in image_resample #28458

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

Conversation

ianthomas23
Copy link
Member

PR summary

Correct numpy dtype comparisons in image_resample C++ code.

Previously we were using dtype1.is(dtype2) (the pybind11 C++ equivalent of dtype1 is dtype2 in Python) whereas we should have been using dtype1.equal(dtype2) (the pybind11 C++ equivalent of dtype1 == dtype2 in Python).

PR checklist

@story645 story645 added this to the v3.9.1 milestone Jun 25, 2024
@QuLogic QuLogic merged commit e353367 into matplotlib:main Jun 25, 2024
43 of 44 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jun 25, 2024
QuLogic added a commit that referenced this pull request Jun 26, 2024
…458-on-v3.9.x

Backport PR #28458 on branch v3.9.x (Correct numpy dtype comparisons in image_resample)
@ianthomas23 ianthomas23 deleted the 28448_image_resample_dtype_comparisons branch June 26, 2024 06:05
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]: Making an RGB image from pickled data throws error
4 participants