Commit d951d42a authored by Patrick Godwin's avatar Patrick Godwin

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

parent 66b4a092
Pipeline #67564 passed with stages
in 26 minutes and 28 seconds
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment