From 00e622c8c195d964afb09e27e70e21633aafab38 Mon Sep 17 00:00:00 2001 From: Kipp Cannon <kipp.cannon@ligo.org> Date: Fri, 29 Jun 2012 14:56:30 -0400 Subject: [PATCH] gstlal_inspiral, gstlal_ll_inspiral: - in command line parsing, check that at least two detectors are supplied --- gstlal-ugly/bin/gstlal_inspiral | 4 +++- gstlal-ugly/bin/gstlal_ll_inspiral | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gstlal-ugly/bin/gstlal_inspiral b/gstlal-ugly/bin/gstlal_inspiral index a10f81e0cc..772f0fe7b9 100755 --- a/gstlal-ugly/bin/gstlal_inspiral +++ b/gstlal-ugly/bin/gstlal_inspiral @@ -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 = [] diff --git a/gstlal-ugly/bin/gstlal_ll_inspiral b/gstlal-ugly/bin/gstlal_ll_inspiral index 7a396df339..cdd904cdea 100755 --- a/gstlal-ugly/bin/gstlal_ll_inspiral +++ b/gstlal-ugly/bin/gstlal_ll_inspiral @@ -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 = [] -- GitLab