Skip to content

numpy23 np.number patch - #70

Merged
mbaak merged 3 commits into
masterfrom
numpy23_number_patch
Aug 26, 2025
Merged

numpy23 np.number patch#70
mbaak merged 3 commits into
masterfrom
numpy23_number_patch

Conversation

@mbaak

@mbaakmbaak commented Aug 25, 2025

Copy link
Copy Markdown
Contributor

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
mbaakforce-pushed the numpy23_number_patch branch from dc8cbf0 to a9092e4CompareAugust 25, 2025 13:02
@mbaak
mbaakforce-pushed the numpy23_number_patch branch from a9092e4 to e7c4ac0CompareAugust 25, 2025 13:03
@mbaak
mbaak merged commit c3a7d01 into masterAug 26, 2025
8 checks passed
@mbaak
mbaak deleted the numpy23_number_patch branch August 26, 2025 08:22
Sign up for freeto 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

@mbaak@sbrugman