diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-03-16 12:58:17 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-03-16 12:58:17 +0100 |
commit | cfe507106e8c7f182c48690acd2b286c303564b0 (patch) | |
tree | 66ef5ad10b96c2076219230e0ab4b4e00debb5c9 | |
parent | eff1bf008658ce9a77b21407bfc3175fc595a02a (diff) |
null: fix string formatting
-rw-r--r-- | null.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -109,7 +109,7 @@ def _null_geodesic_kernel(times, t0, events, pu_t_0, if t0 < times[-1]: sol = solve_ivp(**args) if sol.status != 1: - raise ValueError('solver status from t0=%g: %d' % t0, sol.status) + raise ValueError('solver status from t0=%g: %d' % (t0, sol.status)) sol_fwd = sol.sol @@ -118,7 +118,7 @@ def _null_geodesic_kernel(times, t0, events, pu_t_0, args['t_span'] = (0.0, -1e6) sol = solve_ivp(**args) if sol.status != 1: - raise ValueError('solver status from t0=%g: %d' % t0, sol.status) + raise ValueError('solver status from t0=%g: %d' % (t0, sol.status)) sol_back = sol.sol |