gwcelery.tasks.p_astro_gstlal module¶
Computation of p_astro by source category. See Kapadia et al (2019), arXiv:1903.06881, for details.
-
(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, 'Terrestrial': 0.001}