From 8ea62f9542f83c1316e8d2078ce543d70b674d33 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 23 Feb 2023 12:51:47 +0100 Subject: null: work around lack of args support in older scipy --- null.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/null.py b/null.py index f001e39..77ba068 100644 --- a/null.py +++ b/null.py @@ -71,13 +71,13 @@ def _null_geodesic_kernel(times, t0, events, pu_t_0, pu_X_0 = np.sqrt(alpha_0 * alpha_0 / gXX_0) * pu_t_0 args = { + # workaround for older versions of scipy not supporting args for fun 'fun' : lambda t,x:_null_geodesic_axis_rhs(t,x,alpha, alpha_dX, alpha_dt, gXX, gXX_dX, gXX_dt), 't_span' : (0.0, 1e6), 'y0' : (t0, 0.0, pu_t_0, pu_X_0), 'method' : 'RK45', 'dense_output' : True, 'events' : events, - 'args' : (alpha, alpha_dX, alpha_dt, gXX, gXX_dX, gXX_dt), 'rtol' : 1e-4, 'atol' : 1e-6, } -- cgit v1.2.3