summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-02-23 12:51:47 +0100
committerAnton Khirnov <anton@khirnov.net>2023-02-24 16:54:18 +0100
commit8ea62f9542f83c1316e8d2078ce543d70b674d33 (patch)
tree2fed092188fa7624ca7b3dffe013af88225f2c70
parent3ba26f3f986478b616160d06e679cf38ad015a13 (diff)
null: work around lack of args support in older scipy
-rw-r--r--null.py2
1 files changed, 1 insertions, 1 deletions
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,
}