Commit a4779605 authored by Kipp Cannon's avatar Kipp Cannon

lalapps_burca: reduce number of variables

Original: 36c004fa6f41daa673d0d3b32e49ba45d3d0371e
parent 76f5dab7
......@@ -103,11 +103,9 @@ def parse_command_line():
if options.coincidence_algorithm not in ("excesspower", "stringcusp"):
raise ValueError("unrecognized --coincidence-algorithm %s" % options.coincidence_algorithm)
if options.coincidence_segments is not None:
options.coinc_segs = segmentsUtils.from_range_strings(options.coincidence_segments.split(","), boundtype = lsctables.LIGOTimeGPS).coalesce()
options.coincidence_segments = segmentsUtils.from_range_strings(options.coincidence_segments.split(","), boundtype = lsctables.LIGOTimeGPS).coalesce()
if filenames is not None and len(filenames) > 1:
raise ValueError("refusing to allow use of --coincidence-segments with more than one input file")
else:
options.coinc_segs = None
if options.min_instruments < 1:
raise ValueError("--min-instruments must be >= 1")
......@@ -150,8 +148,8 @@ options, filenames, paramdict = parse_command_line()
#
if options.coinc_segs is not None:
def coinc_segs_ntuple_comparefunc(events, offset_vector, min_instruments = options.min_instruments, coinc_segs = options.coinc_segs):
if options.coincidence_segments is not None:
def coinc_segs_ntuple_comparefunc(events, offset_vector, min_instruments = options.min_instruments, coinc_segs = options.coincidence_segments):
# for the purposes of the coinc segs feature, the coinc
# time is minimum of event peak times. this is a fast, and
# guaranteed reproducible definition
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment