diff --git a/calphy/integrators.py b/calphy/integrators.py index 61d25ca..e89751e 100644 --- a/calphy/integrators.py +++ b/calphy/integrators.py @@ -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