gwcelery.tasks.p_astro_gstlal module¶
Module containing the computation of p_astro by source category See https://dcc.ligo.org/LIGO-T1800072 for details.
-
gwcelery.tasks.p_astro_gstlal.
p_astro_update
(category, event_bayesfac_dict, mean_values_dict)[source]¶
-
(task)
gwcelery.tasks.p_astro_gstlal.
compute_p_astro
(files)[source]¶ Task to compute p_astro by source category.
Parameters: files (tuple) – Tuple of byte content from (coinc.xml, ranking_data.xml.gz) Returns: p_astros – JSON dump of the p_astro by source category Return type: str Example
>>> p_astros = json.loads(compute_p_astro(files)) >>> p_astros {'BNS': 0.999, 'BBH': 0.0, 'NSBH': 0.0, 'Terr': 0.001}