From faca5bd9c257b36de14854838cf4abf783474b95 Mon Sep 17 00:00:00 2001 From: Chad Hanna <chad.hanna@ligo.org> Date: Thu, 11 Jul 2019 15:10:44 -0400 Subject: [PATCH] update the function prototype for compute_p_astro to include the missing rankingstatpdf and default values for mean_values_dict --- gstlal-inspiral/python/p_astro_gstlal.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gstlal-inspiral/python/p_astro_gstlal.py b/gstlal-inspiral/python/p_astro_gstlal.py index c4fde91810..c443bab2f2 100644 --- a/gstlal-inspiral/python/p_astro_gstlal.py +++ b/gstlal-inspiral/python/p_astro_gstlal.py @@ -7,6 +7,8 @@ from ligo.lw import utils as ligolw_utils from ligo.lw import lsctables from ligo.segments import utils as segments_utils from lal import rate +from gstlal.far import FAPFAR +import json def p_astro_update(category, event_bayesfac_dict, mean_values_dict): """ @@ -293,7 +295,13 @@ def compute_p_astro(event_ln_likelihood_ratio, snr, far, livetime, - mean_values_dict): + rankingstatpdf, + mean_values_dict = {"counts_BNS": 2.11050326523, + "counts_NSBH": 1.56679410666, + "counts_BBH": 9.26042350393, + "counts_MassGap": 2.40800240248, + "counts_Terrestrial": 3923} + ): """ Task to compute `p_astro` by source category. -- GitLab