From dbfe9b56c69cf074db302c96a018dc031846c20d Mon Sep 17 00:00:00 2001 From: Richard R <58728519+rrjbca@users.noreply.github.com> Date: Tue, 25 Jun 2024 20:23:29 +0100 Subject: [PATCH] Use scipy.integrate.cumulative_trapezoid (#617) --- skypy/galaxies/tests/test_stellar_mass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skypy/galaxies/tests/test_stellar_mass.py b/skypy/galaxies/tests/test_stellar_mass.py index cb6679892..49acde131 100644 --- a/skypy/galaxies/tests/test_stellar_mass.py +++ b/skypy/galaxies/tests/test_stellar_mass.py @@ -49,7 +49,7 @@ def calc_cdf(m): mass_min = 10 ** 7 mass_max = 10 ** 13 pdf = calc_pdf(m, alpha, mass_star, mass_min, mass_max) - cdf = scipy.integrate.cumtrapz(pdf, m, initial=0) + cdf = scipy.integrate.cumulative_trapezoid(pdf, m, initial=0) cdf = cdf / cdf[-1] return cdf