Skip to content

Commit

Permalink
fix strings to new convention
Browse files Browse the repository at this point in the history
  • Loading branch information
gboehl committed Oct 29, 2024
1 parent b52a9d9 commit a931402
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions econpizza/solvers/steady_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def _get_stst_dist_objs(self, res, maxit_backwards, maxit_forwards):
elif jnp.isnan(distSS).any():
mess += f"Forward iteration returns NaNs. "
elif distSS.min() < 0:
mess += f"Distribution contains negative values " + \
f"({distSS.min():0.1e}). "
mess += f"Distribution contains negative values ({distSS.min():0.1e}). "
if cnt_backwards == maxit_backwards:
mess += f'Maximum of {maxit_backwards} backwards calls reached. '
if cnt_forwards == maxit_forwards:
Expand Down Expand Up @@ -170,8 +169,7 @@ def solve_stst(self, tol=1e-8, maxit=15, tol_backwards=None, maxit_backwards=200
err) else f" (max. error is {err:1.2e} in eqn. {errarg})"
mess = f"Steady state FAILED{location}. {res['message']} {mess}"
else:
mess = f"{res['message']} WARNING: Steady state error is {
err:1.2e} in eqn. {errarg}. {mess}"
mess = f"{res['message']} WARNING: Steady state error is {err:1.2e} in eqn. {errarg}. {mess}"
if raise_errors:
raise Exception(mess)
elif verbose:
Expand Down

0 comments on commit a931402

Please sign in to comment.