Skip to content

Commit

Permalink
Merge pull request MDAnalysis#4330 from MDAnalysis/integrate-simpson-…
Browse files Browse the repository at this point in the history
…deprecation

scipy.integrate.simps deprecation
  • Loading branch information
tylerjereddy authored Nov 4, 2023
2 parents 4b8b924 + e1e10e7 commit 5fa0d27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/MDAnalysis/analysis/pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,8 @@ def cosine_content(pca_space, i):
t = np.arange(len(pca_space))
T = len(pca_space)
cos = np.cos(np.pi * t * (i + 1) / T)
return ((2.0 / T) * (scipy.integrate.simps(cos*pca_space[:, i])) ** 2 /
scipy.integrate.simps(pca_space[:, i] ** 2))
return ((2.0 / T) * (scipy.integrate.simpson(cos*pca_space[:, i])) ** 2 /
scipy.integrate.simpson(pca_space[:, i] ** 2))


@due.dcite(
Expand Down

0 comments on commit 5fa0d27

Please sign in to comment.