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

gstlaldeglitchfilter: make the minimum veto segment 2 seconds and increase the...

gstlaldeglitchfilter: make the minimum veto segment 2 seconds and increase the taper length to one second on each side
parent c0400413
No related branches found
No related tags found
No related merge requests found
...@@ -347,9 +347,10 @@ static GstFlowReturn process_buffer(GstLALDeglitchFilter *filter, GstBuffer * in ...@@ -347,9 +347,10 @@ static GstFlowReturn process_buffer(GstLALDeglitchFilter *filter, GstBuffer * in
*/ */
guint64 duration = segstop - segstart; guint64 duration = segstop - segstart;
g_assert(duration >= 1.0 * GST_SECOND); /* must be greater than or equal to 1.0s */ gdouble min_window_duration = 2.0 * GST_SECOND;
g_assert(duration >= min_window_duration); /* must be greater than or equal to 1.0s */
g_assert(filter->rate >= 128); /* This probably doesnt make sense for low sample rates, so this is just here as a safety check. FIXME */ g_assert(filter->rate >= 128); /* This probably doesnt make sense for low sample rates, so this is just here as a safety check. FIXME */
gdouble beta = 1.0 * GST_SECOND / duration; gdouble beta = min_window_duration / duration;
guint length = stopix - startix; guint length = stopix - startix;
REAL8Window *window = XLALCreateTukeyREAL8Window(length, beta); REAL8Window *window = XLALCreateTukeyREAL8Window(length, beta);
......
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