diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-02-23 12:51:47 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-02-24 16:54:18 +0100 |
commit | 8ea62f9542f83c1316e8d2078ce543d70b674d33 (patch) | |
tree | 2fed092188fa7624ca7b3dffe013af88225f2c70 /null.py | |
parent | 3ba26f3f986478b616160d06e679cf38ad015a13 (diff) |
null: work around lack of args support in older scipy
Diffstat (limited to 'null.py')
-rw-r--r-- | null.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, } |