Skip to content

Conversation

mbaak
Copy link
Contributor

@mbaak mbaak commented Aug 25, 2025

Fix compatibility with numpy v2.3 due to numpy datatype changes.
In numpy 2.3, converting np.number to a dtype no longer allowed.

numpy/numpy#28254
When constructing a dtype from a class with a dtype attribute, that attribute must be a dtype-instance rather than a thing that can be parsed as a dtype instance.

hist.datatype now returns float instead of np.number as datatype.

numpy/numpy#28254
When constructing a dtype from a class with a dtype attribute, that attribute must be a dtype-instance rather than a thing that can be parsed as a dtype instance.

hist.datatype now returns float instead of np.number as datatype.
@mbaak mbaak force-pushed the numpy23_number_patch branch from dc8cbf0 to a9092e4 Compare August 25, 2025 13:02
kx79wq added 2 commits August 25, 2025 15:03
@mbaak mbaak force-pushed the numpy23_number_patch branch from a9092e4 to e7c4ac0 Compare August 25, 2025 13:03
@mbaak mbaak merged commit c3a7d01 into master Aug 26, 2025
8 checks passed
@mbaak mbaak deleted the numpy23_number_patch branch August 26, 2025 08:22
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.

2 participants