From 181cc13351a42f907d1a1578b0263d66c06d6fe2 Mon Sep 17 00:00:00 2001 From: GarethCabournDavies Date: Fri, 16 Jun 2023 05:44:13 -0700 Subject: [PATCH] significance bug for trigger_fit. A couple of minor fixes --- pycbc/events/significance.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pycbc/events/significance.py b/pycbc/events/significance.py index 13d03957e13..f65be62297c 100644 --- a/pycbc/events/significance.py +++ b/pycbc/events/significance.py @@ -159,10 +159,10 @@ def n_louder_from_fit(back_stat, fore_stat, dec_facs, count_n_louder(back_stat[bg_below], fore_stat[fg_below], dec_facs) # As we have only counted the louder below-threshold events, need to - # add the above threshold events, whcih by definition are louder than + # add the above threshold events, which by definition are louder than # all the below-threshold events - back_cnum += n_above - fnlouder += n_above + back_cnum[bg_below] += n_above + fnlouder[fg_below] += n_above return back_cnum, fnlouder