From dac8620675a0d783466d0ba9fd0a9b800b498bfb Mon Sep 17 00:00:00 2001 From: Patrick Kidger <33688385+patrick-kidger@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:21:32 +0200 Subject: [PATCH] Update _solution.py (#443) --- diffrax/_solution.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/diffrax/_solution.py b/diffrax/_solution.py index b1f7e322..e26a303b 100644 --- a/diffrax/_solution.py +++ b/diffrax/_solution.py @@ -67,10 +67,8 @@ class Solution(AbstractPath): - `ys`: The value of the solution at each of the times in `ts`. Might `None` if no values were saved. - `stats`: Statistics for the solve (number of steps etc.). - - `result`: Integer specifying the success or cause of failure of the solve. A - value of `0` corresponds to a successful solve. Any other value is a failure. - A human-readable message can be obtained by looking up messages via - `diffrax.RESULTS[]`. + - `result`: Enumeration specifying the success or cause of failure of the solve. + A human-readable message is displayed if printed. No message means success! - `solver_state`: If saved, the final internal state of the numerical solver. - `controller_state`: If saved, the final internal state for the step size controller.