From 2982a58950a3e73aab4ccab9127a387ac6718902 Mon Sep 17 00:00:00 2001
From: Prathamesh Joshi <prathamesh.joshi@ldas-pcdev5.ligo.caltech.edu>
Date: Tue, 2 Jan 2024 03:50:27 -0800
Subject: [PATCH] Allowing impossible inj candidates bug fix pt2

---
 gstlal-inspiral/python/lloidhandler.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gstlal-inspiral/python/lloidhandler.py b/gstlal-inspiral/python/lloidhandler.py
index 25e93c98d4..005f449926 100644
--- a/gstlal-inspiral/python/lloidhandler.py
+++ b/gstlal-inspiral/python/lloidhandler.py
@@ -878,6 +878,7 @@ class LLOIDTracker:
 		self.ranking_stat_input_url = ranking_stat_input_url
 		self.ranking_stat_output_url = ranking_stat_output_url
 		self.rankingstat = rankingstat
+		self.allow_impossible_candidates = rankingstat.allow_impossible_candidates
 
 		bottle.route("/remove_counts.txt", method = "GET")(self.web_get_remove_counts)
 		bottle.route("/remove_counts.txt", method = "POST")(self.web_set_remove_counts)
@@ -1199,6 +1200,7 @@ class LLOIDTracker:
 					for tries in range(10):
 						try:
 							self.rankingstat, _ = far.parse_likelihood_control_doc(ligolw_utils.load_url(self.ranking_stat_input_url, verbose = self.verbose, contenthandler = far.RankingStat.LIGOLWContentHandler))
+							self.rankingstat.allow_impossible_candidates = self.allow_impossible_candidates
 						except OSError as e:
 							print(f'Error in reading rank stat on try {tries}: {e}', file=sys.stderr)
 							time.sleep(1)
-- 
GitLab