From e0313cd087d18cb3d169b92c1714c429d805d588 Mon Sep 17 00:00:00 2001 From: David Hilditch Date: Tue, 21 Feb 2023 20:01:22 +0000 Subject: null: remove extra sign. --- null.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/null.py b/null.py index 05f2e9e..f001e39 100644 --- a/null.py +++ b/null.py @@ -71,7 +71,7 @@ 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 = { - 'fun' : _null_geodesic_axis_rhs, + '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', @@ -127,7 +127,7 @@ def _events_bnd_null_geodesics(times, spatial_coords): event_x_bound_upper.terminal = True event_x_bound_upper.direction = 1.0 - def event_x_bound_lower(Lambda, y, sign, *args): + def event_x_bound_lower(Lambda, y, *args): x = y[1] return x - spatial_coords[0] event_x_bound_lower.terminal = True -- cgit v1.2.3