Skip to content
Snippets Groups Projects
Commit 887494a2 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

gstlal_idq_trigger_gen: modified trigger output to add true duration of...

gstlal_idq_trigger_gen: modified trigger output to add true duration of template (instead of max duration)
parent 7cc8c612
No related branches found
No related tags found
No related merge requests found
......@@ -379,7 +379,7 @@ for channel in channels:
dur = max([duration(phi, q, 1e-3) for (phi, q) in phi_ql(flow, fhigh, qlow, qhigh)])
t_arr = numpy.linspace(-dur/2., dur/2., int(dur*rate))
phase = [0, numpy.pi/2.]
basis_params[(channel, rate)] = [(phi, q, dur/2.) for (phi, q) in phi_ql(flow, fhigh, qlow, qhigh)]
basis_params[(channel, rate)] = [(phi, q, duration(phi, q, 1e-3)/2.) for (phi, q) in phi_ql(flow, fhigh, qlow, qhigh)]
thishead = pipeparts.mkqueue(pipeline, thishead, max_size_buffers = 0, max_size_bytes = 0, max_size_time = Gst.SECOND * 30)
thishead = pipeparts.mkfirbank(pipeline, thishead, fir_matrix = numpy.array([half_sine_gaussian(sine_gaussian(phi, phi_0, q, t_arr)) for (phi, q) in phi_ql(flow, fhigh, qlow, qhigh) for phi_0 in phase]), time_domain = False, block_stride = int(rate), latency = 0)
thishead = pipeparts.mkqueue(pipeline, thishead, max_size_buffers = 1, max_size_bytes = 0, max_size_time = 0)
......
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