Skip to content
Snippets Groups Projects
Commit 4daa2b82 authored by Chad Hanna's avatar Chad Hanna
Browse files

multirate_datasource.py: add deglitcher

parent ff4faf8c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment