Skip to content

Commit

Permalink
Update kirkwood_buff_integrals.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTov authored Nov 8, 2024
1 parent 21733fa commit 6a1cc53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdsuite/calculators/kirkwood_buff_integrals.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from dataclasses import dataclass

import numpy as np
from scipy.integrate import cumtrapz
from scipy.integrate import cumulative_trapezoid

from mdsuite.calculators.calculator import Calculator, call
from mdsuite.database.scheme import Computation
Expand Down Expand Up @@ -174,7 +174,7 @@ def _calculate_kb_integral(self, radii_data: np.ndarray, rdf_data: np.ndarray):
order=self.args.savgol_order,
window_length=self.args.savgol_window_length,
)
integral_data = cumtrapz(
integral_data = cumulative_trapezoid(
y=(filtered_data[1:] - 1) * (radii_data[1:]) ** 2, x=radii_data[1:]
)

Expand Down

0 comments on commit 6a1cc53

Please sign in to comment.