Skip to content
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

Handle raster_map case with float32 array and float64 nodata values #408

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

phargogh
Copy link
Member

This PR fixes #358, which describes a type-casting issue between several widths of the same type (e.g. float32 vs. float64). I think @dcdenu4 's suggestion of just adding a kwarg to numpy.can_cast is a sufficient solution for what we're trying to do.

This PR's tests will fail until #406 is merged, which is why I'm leaving it as a draft for now.

@phargogh phargogh requested a review from emlys October 10, 2024 00:17
@phargogh phargogh marked this pull request as ready for review October 11, 2024 20:44
@phargogh phargogh modified the milestones: 2.4.6, 2.4.7 Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

raster_map errors on valid combinations of dtype and nodata value
2 participants