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 May 25, 2023
1 parent 18d6c2a commit 20c6ee9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/taichi/linalg/sparse_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def analyze_pattern(self, sparse_matrix):
if isinstance(sparse_matrix, SparseMatrix):
self.matrix = sparse_matrix
if self.matrix.dtype != self.dtype:
raise TaichiRuntimeError(f"The SparseSolver's dtype {self.dtype} is not consistent with the SparseMatrix's dtype {self.matrix.dtype}.")
raise TaichiRuntimeError(
f"The SparseSolver's dtype {self.dtype} is not consistent with the SparseMatrix's dtype {self.matrix.dtype}."
)
self.solver.analyze_pattern(sparse_matrix.matrix)
else:
self._type_assert(sparse_matrix)
Expand Down

0 comments on commit 20c6ee9

Please sign in to comment.