Skip to content
Snippets Groups Projects
Commit d951d42a authored by Patrick Godwin's avatar Patrick Godwin
Browse files

p_astro_gstlal.py: add json import to doctests to avoid unit test failures

parent 66b4a092
No related branches found
No related tags found
No related merge requests found
......@@ -323,6 +323,7 @@ def compute_p_astro(event_ln_likelihood_ratio,
Example
-------
>>> import json
>>> p_astros = json.loads(compute_p_astro(files))
>>> p_astros
{'BNS': 0.999, 'BBH': 0.0, 'NSBH': 0.0, 'Terrestrial': 0.001}
......@@ -385,6 +386,7 @@ def compute_p_astro_approx(snr, far, mass1, mass2, livetime, mean_values_dict):
Example
-------
>>> import json
>>> p_astros = json.loads(compute_p_astro(files))
>>> p_astros
{'BNS': 0.999, 'BBH': 0.0, 'NSBH': 0.0, 'Terrestrial': 0.001}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment