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 8543540 commit 50bf732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mddatasetbuilder/datasetbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def _calcoulumbmatrix(self, atoms):
with np.errstate(divide="ignore", invalid="ignore"):
np.divide(top, r, top)
np.fill_diagonal(top, diag)
top[top == np.Infinity] = 0
top[top == np.inf] = 0
top[np.isnan(top)] = 0
return np.linalg.eigh(top)[0]

Expand Down

0 comments on commit 50bf732

Please sign in to comment.