There will be maintenance performed on git.ligo.org, chat.ligo.org, containers.lig.org, and docs.ligo.org starting at 9am PDT on Tuesday 18th August 2020. There will be an extremely small period of downtime at the start of the maintenance window as various services are restarted. Please address any comments, questions, or concerns to computing-help@igwn.org.

Commit faca5bd9 authored by Chad Hanna's avatar Chad Hanna

update the function prototype for compute_p_astro to include the missing...

update the function prototype for compute_p_astro to include the missing rankingstatpdf and default values for mean_values_dict
parent 3e1a9c67
Pipeline #70014 passed with stages
in 36 minutes and 39 seconds
......@@ -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.
......
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