Skip to content

Comments

Trapezoid#64

Merged
JanosJiri merged 2 commits intomainfrom
trapezoid
Feb 9, 2026
Merged

Trapezoid#64
JanosJiri merged 2 commits intomainfrom
trapezoid

Conversation

@JanosJiri
Copy link
Collaborator

@JanosJiri JanosJiri commented Feb 9, 2026

np.trapz has been completely replaced by np.trapezoid in the latest version of numpy. Hence, we decided to support only np.trapezoid from now on. People insisting on using np.trapz can use older versions of promdens.

np.trapz has been completely replaced by np.trapezoid in the latest version of numpy. Hence, we decided to support only np.trapezoid from now on. People insisting on using np.trapz can use older versions of promdens.
@JanosJiri JanosJiri added this to the v1.0.3 milestone Feb 9, 2026
@JanosJiri JanosJiri self-assigned this Feb 9, 2026
@JanosJiri JanosJiri linked an issue Feb 9, 2026 that may be closed by this pull request
@JanosJiri JanosJiri marked this pull request as ready for review February 9, 2026 12:43
@danielhollas
Copy link
Collaborator

One unfortunate thing now is that the currently published promdens versions are broken for newer python versions since they by default install the newest numpy (see e.g. failing tests on Python 3.13 here https://github.com/PHOTOX/promdens/actions/runs/21260403172/job/61186176146?pr=63)

A way to prevent that would be to pin the numpy version, e.g. to >2.0;<=2.4. But then we'd need to keep updating the pin periodically. Not sure what's best to do here.

@JanosJiri JanosJiri merged commit b62648a into main Feb 9, 2026
2 checks passed
@JanosJiri JanosJiri deleted the trapezoid branch February 9, 2026 14:47
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.

DeprecationWarning: Change trapz for trapezoid integration function

2 participants