diff --git a/gstlal-ugly/bin/gstlal_inspiral b/gstlal-ugly/bin/gstlal_inspiral index a10f81e0cc103bc78e1e49d1d53ff80cc6fac083..772f0fe7b99de2616c7c7a483be0adfb06ef4d14 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 7a396df339b97e57c47196a8048ce2f8672c0477..cdd904cdea4444f54628fd56537013bea1c8419e 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 = []