From 186f475095e92563a91185f8a698938c307a3869 Mon Sep 17 00:00:00 2001
From: Chad Hanna <chad.hanna@comp-hd-001.gwave.ics.psu.edu>
Date: Wed, 10 Jul 2019 14:04:59 -0400
Subject: [PATCH] far.py: make extinction threshold explicit in event count so
 that it doesn't bounce around

---
 gstlal-inspiral/python/far.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gstlal-inspiral/python/far.py b/gstlal-inspiral/python/far.py
index 7d4a244dce..d7a3bdf5ab 100644
--- a/gstlal-inspiral/python/far.py
+++ b/gstlal-inspiral/python/far.py
@@ -718,9 +718,9 @@ WHERE
 		noise_counts = self.noise_lr_lnpdf.array.copy()
 
 		# get the zerolag counts.
-		# we model the tail of the distribution - top 1% - where
-		# clustering only effects the result at a 1% level.
-		onepercent = zl_counts.cumsum().searchsorted(zl_counts.sum() * 0.99)
+		# we model the tail of the distribution - top 0.1 - 1% - where
+		# clustering only effects the result at a < 1% level.
+		onepercent = zl_counts.cumsum().searchsorted(zl_counts.sum() - 1000)
 
 		# normalize the counts
 		noise_counts /= noise_counts.sum()
-- 
GitLab