summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-01-08 11:11:24 +0100
committerAnton Khirnov <anton@khirnov.net>2024-01-08 11:11:46 +0100
commit9ebde005aa7ddee8ffe855f93601fecc33690f8c (patch)
tree7e6dfc829b475b9086a5c28524f3ec832091fa16
parent5e1e43c9f0d8b488d0f1b5c4b85862e628a4f762 (diff)
null: document integrate_times parameter of null_geodesics()
-rw-r--r--null.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/null.py b/null.py
index 2ba59f0..f1328b9 100644
--- a/null.py
+++ b/null.py
@@ -170,8 +170,8 @@ def null_geodesics(times, X, gXX, gtt,
"""
Compute null geodesics along a axis, assuming zero shift.
- For every coordinate time times[i], integrate a null geodesic from
- (t=times[i], x=0) forward and backward in time.
+ For every coordinate time integrate_times[i], integrate a null geodesic from
+ (t=integrate_times[i], x=0) forward and backward in time.
:param array_like times: 1D array of coordinate times at which gXX and gtt
are provided, must be uniform
@@ -192,6 +192,9 @@ def null_geodesics(times, X, gXX, gtt,
Defaults to 1.0 for each geodesic if not supplied.
:param int interp_order: order of the Lagrange interpolation used for gXX
and gtt.
+ :param array_like integrate_times: 1D array of coordinate times from which
+ each geodesic will be integrated; or to put it differntly, of coordinate
+ times at which each geodesic hits X=0.
:return: A len(times)-sized list of scipy.integrate.OdeSolution, each
describing the null geodesic shot from the corresponding coordinate