Skip to content

Commit

Permalink
Merge pull request #137 from stefanhiemer/main
Browse files Browse the repository at this point in the history
Fix deprecated scipy.integrate.cumtrapz
  • Loading branch information
srmnitc authored Jul 4, 2024
2 parents dd581ec + e629be0 commit 769274e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion calphy/integrators.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
import os
import warnings
from calphy.splines import splines, sum_spline1, sum_spline25, sum_spline50, sum_spline75, sum_spline100
from scipy.integrate import cumtrapz
try:
from scipy.integrate import cumtrapz
except ImportError:
from scipy.integrate import cumulative_trapezoid as cumtrapz
from tqdm import tqdm
import pyscal3.core as pc
from ase.io import read
Expand Down

0 comments on commit 769274e

Please sign in to comment.