From 0145ce69ae489418b33166416d106a6f02820857 Mon Sep 17 00:00:00 2001
From: Patrick Godwin <patrick.godwin@ligo.org>
Date: Thu, 6 Jun 2019 07:43:43 -0700
Subject: [PATCH] gstlal_inspiral_dag: remove far injection code

---
 gstlal-inspiral/bin/gstlal_inspiral_dag | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/gstlal-inspiral/bin/gstlal_inspiral_dag b/gstlal-inspiral/bin/gstlal_inspiral_dag
index 23b505c082..099ddd8bf5 100755
--- a/gstlal-inspiral/bin/gstlal_inspiral_dag
+++ b/gstlal-inspiral/bin/gstlal_inspiral_dag
@@ -262,8 +262,6 @@ def parse_command_line():
 	parser.add_option("--ht-gate-threshold", type="float", help="set a threshold on whitened h(t) to veto glitches")
 	parser.add_option("--ht-gate-threshold-linear", metavar = "mchirp_min:ht_gate_threshold_min-mchirp_max:ht_gate_threshold_max", type="string", help = "Set the threshold on whitened h(t) to mark samples as gaps (glitch removal) with a linear scale of mchirp")
 	parser.add_option("--blind-injections", metavar = "filename", help = "Set the name of an injection file that will be added to the data without saving the sim_inspiral table or otherwise processing the data differently.  Has the effect of having hidden signals in the input data. Separate injection runs using the --injections option will still occur.")
-	# FIXME far-injections currently doesnt work, either fix it or delete it
-	#parser.add_option("--far-injections", action = "append", help = "Injection files with injections too far away to be seen and are not filtered. Required. See https://www.lsc-group.phys.uwm.edu/ligovirgo/cbcnote/NSBH/MdcInjections/MDC1 for example.")
 	parser.add_option("--singles-threshold", default=float("inf"), action = "store", metavar="THRESH", help = "Set the SNR threshold at which to record single-instrument events in the output (default = +inf, i.e. don't retain singles).")
 	parser.add_option("--gzip-test", default=False, action = "store_true", help = "Perform gzip --test on all output files.")
 	parser.add_option("--verbose", action = "store_true", help = "Be verbose")
@@ -354,12 +352,6 @@ def parse_command_line():
 			fail += "must provide option %s\n" % (option)
 	if fail: raise ValueError, fail
 
-	# FIXME far-injections currently doesnt work, either fix it or delete it
-	#if options.far_injections is not None and len(options.injections) != len(options.far_injections):
-	#	raise ValueError("number of injection files and far injection files must be equal")
-	#if options.far_injections is None:
-	#	options.far_injections = [None for inj in options.injections]
-
 	#FIXME a hack to find the sql paths
 	share_path = os.path.split(dagparts.which('gstlal_inspiral'))[0].replace('bin', 'share/gstlal')
 	options.snr_cluster_sql_file = os.path.join(share_path, 'snr_simplify_and_cluster.sql')
-- 
GitLab