Commit 7d9f6fc0 authored by Hiroaki Ohta's avatar Hiroaki Ohta
Browse files

inspiral_pipe.py: add an option for num_split_inj_snr_jobs

parent 3a1b20c7
......@@ -139,6 +139,7 @@ def parse_command_line():
parser.add_option("--marginalized-likelihood-file", metavar = "filename", help = "Set the marginalized likelihood file (required iff running injection-only analysis)")
parser.add_option("--marginalized-likelihood-with-zerolag-file", metavar = "filename", help = "Set the marginalized likelihood with zerolag file (required iff running injection-only analysis)")
parser.add_option("--num-split-inj-files", metavar = "count", default = 100, type = "int", help = "How many files to split the injections into for expected SNR and V*t estimation. Default is 100.")
# Condor commands
parser.add_option("--condor-command", action = "append", default = [], metavar = "command=value", help = "set condor commands of the form command=value; can be given multiple times")
parser.add_option("--max-inspiral-jobs", type="int", metavar = "jobs", help = "Set the maximum number of gstlal_inspiral jobs to run simultaneously, default no constraint.")
......@@ -400,7 +401,7 @@ if __name__ == '__main__':
# Calculate Expected SNR jobs
if not options.disable_calc_inj_snr:
ligolw_add_nodes = inspiral_pipe.expected_snr_layer(dag, jobs, ref_psd_parent_nodes, options, num_split_inj_snr_jobs = 100)
ligolw_add_nodes = inspiral_pipe.expected_snr_layer(dag, jobs, ref_psd_parent_nodes, options, num_split_inj_snr_jobs = options.num_split_inj_files)
else:
ligolw_add_nodes = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment