Skip to content

DM-54307: Fix for numpy 2.4#155

Merged
mwittgen merged 1 commit intomainfrom
tickets/DM-54307
Mar 17, 2026
Merged

DM-54307: Fix for numpy 2.4#155
mwittgen merged 1 commit intomainfrom
tickets/DM-54307

Conversation

@mwittgen
Copy link
Contributor

@mwittgen mwittgen commented Mar 6, 2026

No description provided.

@mwittgen
Copy link
Contributor Author

mwittgen commented Mar 6, 2026

@mwittgen mwittgen requested a review from erykoff March 6, 2026 00:06
@mwittgen mwittgen requested review from TallJimbo and roceb March 16, 2026 21:03
Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

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

This seems plausible but I'm not really familiar with the types involved or the upstream change, so I'm hoping @erykoff can approve.

Copy link
Contributor

@erykoff erykoff left a comment

Choose a reason for hiding this comment

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

I never new about .item() but this looks like the exact right thing for this extremely annoying numpy feature. However, float() is then redundant since .item() will return a python scalar always (and will work for a 1-length numpy array or a single numpy value).

@mwittgen mwittgen merged commit 057650b into main Mar 17, 2026
4 checks passed
@mwittgen mwittgen deleted the tickets/DM-54307 branch March 17, 2026 19:26
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.

3 participants