diff --git a/gstlal/python/multirate_datasource.py b/gstlal/python/multirate_datasource.py index 3befc01f97354567d4a600e309ecd52b3202259f..7ca79f686a788c9d034faec4275a40db2a299ebb 100644 --- a/gstlal/python/multirate_datasource.py +++ b/gstlal/python/multirate_datasource.py @@ -186,6 +186,13 @@ def mkwhitened_multirate_src(pipeline, src, rates, instrument, psd = None, psd_f head = pipeparts.mkresample(pipeline, head, quality = quality) head = pipeparts.mkchecktimestamps(pipeline, head, "%s_timestamps_%d_hoft" % (instrument, max(rates))) + # + # optionally add vetoes + # + + if veto_segments is not None: + head = datasource.mkdeglitcher(pipeline, head, veto_segments) + # # construct whitener. # @@ -300,7 +307,7 @@ def mkwhitened_multirate_src(pipeline, src, rates, instrument, psd = None, psd_f # if veto_segments is not None: - head = datasource.mksegmentsrcgate(pipeline, head, veto_segments, invert_output=True, rate = max(rates)) + head = datasource.mkdeglitcher(pipeline, head, veto_segments) # # optional gate on whitened h(t) amplitude. attack and hold are