Skip to content

Add conditional import for trapz based on NumPy version#217

Merged
srmnitc merged 2 commits intoICAMS:mainfrom
pmrv:trapz
Feb 18, 2026
Merged

Add conditional import for trapz based on NumPy version#217
srmnitc merged 2 commits intoICAMS:mainfrom
pmrv:trapz

Conversation

@pmrv
Copy link
Contributor

@pmrv pmrv commented Feb 17, 2026

Import trapz function conditionally based on NumPy version.

It's been finally removed in 2.4, but since numpy version is not restricted in pypi/conda packages, it's currently possible to end up with broken calphy installations.

https://numpy.org/doc/stable/release/2.4.0-notes.html#removal-of-deprecated-functions-and-arguments

@srmnitc srmnitc merged commit 8972516 into ICAMS:main Feb 18, 2026
2 checks passed
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