diff options
Diffstat (limited to 'doublenull.py')
-rw-r--r-- | doublenull.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doublenull.py b/doublenull.py index 576dc32..1892c79 100644 --- a/doublenull.py +++ b/doublenull.py @@ -120,7 +120,8 @@ def null_curves(times, spatial_coords, gXX, gXt, gtt, dX = spatial_coords[1] - spatial_coords[0] gXX_interp = interp.Interp2D_C([times[0], spatial_coords[0]], [dt, dX], gXX, interp_order) - gXt_interp = interp.Interp2D_C([times[0], spatial_coords[0]], [dt, dX], gXt, interp_order) + gXt_interp = interp.Interp2D_C([times[0], spatial_coords[0]], [dt, dX], gXt, interp_order) \ + if gXt is not None else lambda t, X: 0.0 gtt_interp = interp.Interp2D_C([times[0], spatial_coords[0]], [dt, dX], gtt, interp_order) if kind == Curves.TEMPORAL: |