Skip to content
Snippets Groups Projects
Commit 00e622c8 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

gstlal_inspiral, gstlal_ll_inspiral:

- in command line parsing, check that at least two detectors are supplied
parent 1d568dad
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ def parse_command_line():
missing_options += ["--svd-bank"]
missing_options += ["--%s" % option.replace("_", "-") for option in required_options if getattr(options, option) is None]
if missing_options:
raise ValueError, "missing required option(s) %s" % ", ".join(sorted(missing_options))
raise ValueError("missing required option(s) %s" % ", ".join(sorted(missing_options)))
# Get the banks and make the detectors
# FIXME add error checking on length of banks per detector, etc
......@@ -162,6 +162,8 @@ def parse_command_line():
detectors = {}
for instrument in set(svd_banks.keys()):
detectors[instrument] = lloidparts.DetectorData(options.frame_cache, channel_dict[instrument])
if len(detectors) < 2:
raise ValueError("only coincident searches are supported: must process data from at least two antennae")
# FIXME: should also check for read permissions
required_files = []
......
......@@ -179,6 +179,8 @@ def parse_command_line():
detectors = {}
for instrument in set(svd_banks.keys()):
detectors[instrument] = lloidparts.DetectorData(None, channel_dict[instrument])
if len(detectors) < 2:
raise ValueError("only coincident searches are supported: must process data from at least two antennae")
# FIXME: should also check for read permissions
required_files = []
......
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