Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gboehl committed Mar 28, 2023
1 parent cf33636 commit a8ed028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grgrjax/newton.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _perform_checks_newton(res, eps, cnt, jac_is_nan, tol, rtol, maxit):

if jac_is_nan.any():
res['success'] = False
res['message'] = "The Jacobian contains `NaN`s."
res['message'] = "The Jacobian contains NaNs."
return True

if eps < tol or eps < rtol:
Expand All @@ -91,7 +91,7 @@ def _perform_checks_newton(res, eps, cnt, jac_is_nan, tol, rtol, maxit):

if jnp.isnan(eps):
res['success'] = False
res['message'] = f"Function returns 'NaN's"
res['message'] = f"Function returns NaNs"
return True

return False
Expand Down

0 comments on commit a8ed028

Please sign in to comment.