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 Oct 11, 2022
1 parent db31314 commit 0020759
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nigsp/operations/laplacian.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ def symmetric_normalisation(mtx, d=None, fix_zeros=True):
d = np.diag(d)
else:
if not (np.diag(d) == d.sum(axis=-1)).all():
raise ValueError("The provided matrix for symmetric normalisation "
"is not a diagonal matrix.")
raise ValueError(
"The provided matrix for symmetric normalisation "
"is not a diagonal matrix."
)
if d.shape != mtx.shape:
raise ValueError(
f"The provided diagonal has shape {d.shape} while the "
Expand Down

0 comments on commit 0020759

Please sign in to comment.