Repository navigation
Conversation
ajpotts
force-pushed
the
3337_Fix_can_cast_with_NumPy_2.0_breaking_changes
branch
from
March 3, 2025 17:30
0971a6b to
07e8a01
Compare
ajpotts
marked this pull request as draft
March 3, 2025 17:38
ajpotts
force-pushed
the
3337_Fix_can_cast_with_NumPy_2.0_breaking_changes
branch
2 times, most recently
from
March 3, 2025 19:32
5b1d20b to
6e85630
Compare
ajpotts
marked this pull request as ready for review
March 3, 2025 19:33
ajpotts
force-pushed
the
3337_Fix_can_cast_with_NumPy_2.0_breaking_changes
branch
from
March 3, 2025 20:34
6e85630 to
ca7c9db
Compare
ajpotts
force-pushed
the
3337_Fix_can_cast_with_NumPy_2.0_breaking_changes
branch
3 times, most recently
from
March 12, 2025 14:07
b6eed52 to
e00cd4a
Compare
drculhane
approved these changes
Mar 12, 2025
drculhane
left a comment
Contributor
There was a problem hiding this comment.
Looks good.
I know this comment "if cast between data types can occur according to the casting rule" is exactly what numpy says too, but I personally find it unhelpful. I don't see any reason not to approve the change, but I'm making a mental TODO to improve this.
ajpotts
added this pull request to the merge queue
Mar 12, 2025
jaketrookman
approved these changes
Mar 12, 2025
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Mar 12, 2025
ajpotts
force-pushed
the
3337_Fix_can_cast_with_NumPy_2.0_breaking_changes
branch
from
March 12, 2025 19:42
e00cd4a to
8b024a2
Compare
jaketrookman
approved these changes
Mar 12, 2025
ajpotts
added this pull request to the merge queue
Mar 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a can_cast function to match numpy:
https://numpy.org/devdocs/reference/generated/numpy.can_cast.html
The
castingargument is left to a separate ticket: #4107Closes #3337: Fix can_cast with NumPy 2.0 breaking changes