/home/runner/work/promdens/promdens/promdens.py:380: DeprecationWarning: `trapz` is deprecated. Use `trapezoid` instead, or one of the numerical integration functions in `scipy.integrate`.
trapz function has been deprecated in numpy 2.0 version, but should be hopefully easy to replace with trapezoid.
However, since the trapezoid function has only been added in v2.0, we probably want to stick to trapz for as while so we can support older numpy version. Also note that numpy 2.0 only supports Python >=3.9 so if we want to support older versions we cannot upgrade yet.
Ok, good to know, thanks for pointing it out. I would stick to trapz for now since a lot of people probably still use older versions of python. We can upgrade in future.
Noticed this in the CI
trapz
function has been deprecated in numpy 2.0 version, but should be hopefully easy to replace with trapezoid. However, since thetrapezoid
function has only been added in v2.0, we probably want to stick totrapz
for as while so we can support older numpy version. Also note that numpy 2.0 only supports Python >=3.9 so if we want to support older versions we cannot upgrade yet.