From 0aa9857fd15b37f723b5c1047909ebaa4d9ea58f Mon Sep 17 00:00:00 2001 From: "Flamm, Matthew H" Date: Fri, 11 Jan 2019 10:36:36 -0500 Subject: [PATCH] format according to doctest --- scipy/integrate/_ivp/ivp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scipy/integrate/_ivp/ivp.py b/scipy/integrate/_ivp/ivp.py index b550968a6f86..5a77e7118cbd 100644 --- a/scipy/integrate/_ivp/ivp.py +++ b/scipy/integrate/_ivp/ivp.py @@ -430,14 +430,14 @@ def solve_ivp(fun, t_span, y0, method='RK45', t_eval=None, dense_output=False, >>> def apex(t,y): return y[1] >>> sol = solve_ivp(upward_cannon, [0, 100], [0, 10], - >>> events=(hit_ground, apex), dense_output=True) + ... events=(hit_ground, apex), dense_output=True) >>> print(sol.t_events) [array([40.]), array([20.])] >>> print(sol.t) [0.00000000e+00 9.99900010e-05 1.09989001e-03 1.10988901e-02 1.11088891e-01 1.11098890e+00 1.11099890e+01 4.00000000e+01] >>> print(sol.sol(sol.t_events[1][0])) - [100. 0.] + [100. 0.] """ if method not in METHODS and not ( inspect.isclass(method) and issubclass(method, OdeSolver)):