Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 1669d10 commit 7268cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymatgen/analysis/defects/recombination.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)


Expand Down

0 comments on commit 7268cd7

Please sign in to comment.