From a5a1a5451038276c1b96e767bc479f980c332fdb Mon Sep 17 00:00:00 2001
From: Kipp Cannon <kipp.cannon@ligo.org>
Date: Wed, 2 May 2018 18:10:54 +0900
Subject: [PATCH] streamthinca:  simplify some thinca() logic

- thinca() can now handle the cases where a ranking statistic has not been
  supplied but fapfar and/or min_log_L have been set.
---
 gstlal-inspiral/python/streamthinca.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gstlal-inspiral/python/streamthinca.py b/gstlal-inspiral/python/streamthinca.py
index d932503a89..a283f1af58 100644
--- a/gstlal-inspiral/python/streamthinca.py
+++ b/gstlal-inspiral/python/streamthinca.py
@@ -265,9 +265,9 @@ class StreamThinca(object):
 			ntuple_comparefunc = ntuple_comparefunc,
 			seglists = seglists,
 			likelihood_func = self.ln_likelihood_func,
-			fapfar = fapfar if self.ln_likelihood_func is not None else None,
+			fapfar = fapfar,
 			min_instruments = self.min_instruments,
-			min_log_L = self.min_log_L if self.ln_likelihood_func is not None else None
+			min_log_L = self.min_log_L
 		)
 
 		# construct a coinc extractor from the XML document while
-- 
GitLab