Skip to content

Commit

Permalink
remove deprecated cumtrapz calls
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmyhill committed Jul 4, 2024
1 parent 26d9048 commit 2f79569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion burnman/classes/seismic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down

0 comments on commit 2f79569

Please sign in to comment.