Fix expired deprecation in scipy 1.14
Since the very recent release of scipy 1.14, the cumtrapz function has been removed and renamed into cumulative_trapezoid (see release notes).
Since the very recent release of scipy 1.14, the cumtrapz function has been removed and renamed into cumulative_trapezoid (see release notes).