diff --git a/pymatgen/analysis/defects/recombination.py b/pymatgen/analysis/defects/recombination.py index 8764338a..ad96fccb 100644 --- a/pymatgen/analysis/defects/recombination.py +++ b/pymatgen/analysis/defects/recombination.py @@ -278,7 +278,7 @@ def pchip_eval( return ( interp_func(x) * np.sum(y_coarse) - / np.trapz(np.nan_to_num(interp_func(interp_domain)), x=interp_domain) + / np.trapezoid(np.nan_to_num(interp_func(interp_domain)), x=interp_domain) )