From 2f7956995f52d17946046eb8ff0797e25d7a2e23 Mon Sep 17 00:00:00 2001 From: Bob Myhill Date: Thu, 4 Jul 2024 17:27:07 +0100 Subject: [PATCH] remove deprecated cumtrapz calls --- burnman/classes/seismic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/burnman/classes/seismic.py b/burnman/classes/seismic.py index f4f32b6f4..d26ae877b 100644 --- a/burnman/classes/seismic.py +++ b/burnman/classes/seismic.py @@ -312,7 +312,7 @@ def _compute_gravity(self): if len(density) > 0: radii = self.table_radius[::-1] - g = scipy.integrate.cumtrapz( + g = scipy.integrate.cumulative_trapezoid( constants.G * 4.0 * np.pi * density * radii * radii, x=radii, initial=0 ) g[1:] = g[1:] / radii[1:] / radii[1:]