Skip to content

Commit

Permalink
fix error message for RANK models
Browse files Browse the repository at this point in the history
  • Loading branch information
gboehl committed May 5, 2023
1 parent b75d774 commit da28efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions econpizza/utilities/newton.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def newton_for_banded_jac(jav_func, nvars, horizon, X, shocks, verbose, maxit=30
break

if not success:
mess += f"Max. error is {err:1.2e}."
mess += f" Max. error is {err:1.2e}."

return X, False, ''
return X, not success, mess


def newton_jax_jit_wrapper(func, init, **args):
Expand Down

0 comments on commit da28efd

Please sign in to comment.