Skip to content

Commit 35fc0d3

Browse files
committed
Don't cover linalg exception in leastsq routine
1 parent 8894ad8 commit 35fc0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

galsim/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ def least_squares(fun, x0, args=(), kwargs={}, max_iter=1000, tol=1e-9, lambda_i
18791879
A = JTJ + lambda_ * np.eye(len(JTJ))
18801880
try:
18811881
delta_params = np.linalg.solve(A, JTr)
1882-
except np.linalg.LinAlgError:
1882+
except np.linalg.LinAlgError: # pragma: no cover
18831883
lambda_ *= 2
18841884
continue
18851885

0 commit comments

Comments
 (0)