Skip to content
Snippets Groups Projects
Commit 93603bb7 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

gstlal_inspiral_calc_likelihood: allow a copy rather than in-place likelihood...

gstlal_inspiral_calc_likelihood: allow a copy rather than in-place likelihood assignment with --copy
parent 386a5114
No related branches found
No related tags found
1 merge request!41DAG Workflow Overhaul + OSG DAG support
......@@ -29,6 +29,7 @@
from optparse import OptionParser
import os
import sys
......@@ -71,6 +72,8 @@ def parse_command_line():
parser.add_option("--vetoes-name", metavar = "name", help = "Set the name of the segment lists to use as vetoes (default = do not apply vetoes).")
parser.add_option("--add-zerolag-to-background", action = "store_true", help = "Add zerolag events to background before populating coincident parameter PDF histograms")
parser.add_option("-f", "--force", action = "store_true", help = "Force recomputation of likelihood values.")
parser.add_option("--copy", action = "store_true", help = "If set, copy triggers to --copy-dir instead of computing likelihoods in place.")
parser.add_option("--copy-dir", metavar = "path", default = ".", help = "Path to copy triggers to if --copy is specified. Default = '.'")
parser.add_option("-v", "--verbose", action = "store_true", help = "Be verbose.")
options, urls = parser.parse_args()
......@@ -233,6 +236,14 @@ for n, url in enumerate(urls, 1):
ligolw_process.set_process_end_time(process)
#
# copy triggers to new location if specified.
#
if options.copy:
url = os.path.join(options.copy_dir, os.path.basename(url))
#
# clean up.
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment