From 4daa2b823da16cea68989a32c2db1465002b7cf8 Mon Sep 17 00:00:00 2001
From: Chad Hanna <chad.hanna@ligo.org>
Date: Mon, 14 May 2018 20:38:40 -0500
Subject: [PATCH] multirate_datasource.py: add deglitcher

---
 gstlal/python/multirate_datasource.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gstlal/python/multirate_datasource.py b/gstlal/python/multirate_datasource.py
index 3befc01f97..7ca79f686a 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
-- 
GitLab