Skip to content

Commit

Permalink
fixing more deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
jgostick committed Aug 7, 2024
1 parent 933a02e commit 18d004e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openpnm/solvers/_scipy.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ def solve(self, A, b, **kwargs):
if not isinstance(A, (csr_matrix, csc_matrix)):
A = A.tocsr()
atol = self._get_atol(b)
return cg(A, b, tol=self.tol, atol=atol, **kwargs)
try:
return cg(A, b, tol=self.tol, atol=atol, **kwargs)
except TypeError:
return cg(A, b, rtol=self.tol, atol=atol, **kwargs)

Check warning on line 29 in openpnm/solvers/_scipy.py

View check run for this annotation

Codecov / codecov/patch

openpnm/solvers/_scipy.py#L28-L29

Added lines #L28 - L29 were not covered by tests

0 comments on commit 18d004e

Please sign in to comment.