Skip to content
Snippets Groups Projects
Commit ac379959 authored by Aaron Viets's avatar Aaron Viets
Browse files

calibration_parts.py: Trying a new method to remove DC component from h(t)

parent e4817264
No related branches found
No related tags found
No related merge requests found
......@@ -161,6 +161,20 @@ def list_srcs(pipeline, *args):
out.append(src)
return tuple(out)
def removeDC(pipeline, head, caps):
head = pipeparts.mktee(pipeline, head)
pipeparts.mknxydumpsink(pipeline, head, "head.txt")
DC = mkresample(pipeline, head, 3, True, "audio/x-raw, rate=16")
DC = pipeparts.mktee(pipeline, DC)
pipeparts.mknxydumpsink(pipeline, DC, "DC1.txt")
DC = pipeparts.mkgeneric(pipeline, DC, "lal_smoothkappas", default_kappa_re = 0, array_size = 1, avg_array_size = 64)
DC = pipeparts.mktee(pipeline, DC)
pipeparts.mknxydumpsink(pipeline, DC, "DC.txt")
DC = mkresample(pipeline, DC, 5, True, caps)
DC = pipeparts.mkaudioamplify(pipeline, DC, -1)
return mkadder(pipeline, list_srcs(pipeline, mkqueue(pipeline, head, 0), mkqueue(pipeline, DC, 0)))
#
# Calibration factor related functions
#
......
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