Skip to content
Snippets Groups Projects
Commit 7808cb11 authored by Alexander Pace's avatar Alexander Pace
Browse files

gstlal_inspiral_lvalert_uberplotter: last minute ninja edit to allow gracedb...

gstlal_inspiral_lvalert_uberplotter: last minute ninja edit to allow gracedb search specification. previously, hardcoded to 'allsky'. now: default is allsky, or specify with --search=..
parent 3706fe53
No related branches found
No related tags found
No related merge requests found
Pipeline #65500 passed with warnings
......@@ -89,6 +89,7 @@ def parse_command_line():
)
parser.add_option("--gracedb-service-url", metavar = "URL", default="%s" % DEFAULT_GRACEDB_URL, help = "GraceDb service url to upload to (default: %s)" % DEFAULT_GRACEDB_URL)
parser.add_option("--lvalert-server-url", metavar = "LVURL", default=DEFAULT_LVALERT_URL, help = "LVAlert Sever to listen to (default: %s)" % DEFAULT_LVALERT_URL)
parser.add_option("--search", metavar = "gdbsearch", default="allsky", help = "Search specification of GraceDB uploads (default: %s)" % "allsky")
parser.add_option("--max-snr", metavar = "SNR", type = "float", default = 200., help = "Set the upper bound of the SNR ranges in plots (default = 200).")
parser.add_option("--format", default = "png", help = "Set file format by selecting the extention (default = \"png\").")
parser.add_option("--output-path", metavar = "PATH", help = "Write local copies of the plots to this directory (default = don't).")
......@@ -188,9 +189,9 @@ def main(client=None):
gracedb_client = GraceDb(options.gracedb_service_url)
if options.testenv:
lvnodes = ['test_gstlal_allsky']
lvnodes = ['test_gstlal_' + options.search]
else:
lvnodes = ['cbc_gstlal_allsky']
lvnodes = ['cbc_gstlal_' + options.search]
#
# start LVAlert listener loop:
......
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