29 from gstlal
import pipeparts
60 latency = (fir_length - 1) / 2
66 head =
test_common.gapped_test_src(pipeline, buffer_length = buffer_length, rate = rate, width = width, test_duration = test_duration, gap_frequency = gap_frequency, gap_threshold = gap_threshold, control_dump_filename =
"%s_control.dump" % name)
67 head = tee = pipeparts.mktee(pipeline, head)
69 fir_matrix = numpy.zeros((1, fir_length), dtype =
"double")
70 fir_matrix[0, (fir_matrix.shape[1] - 1) - latency] = 1.0
72 head = pipeparts.mkfirbank(pipeline, head, fir_matrix = fir_matrix, latency = latency, time_domain = time_domain)
73 head = pipeparts.mkchecktimestamps(pipeline, head)
74 pipeparts.mknxydumpsink(pipeline, pipeparts.mkqueue(pipeline, head),
"%s_out.dump" % name)
75 pipeparts.mknxydumpsink(pipeline, pipeparts.mkqueue(pipeline, tee),
"%s_in.dump" % name)
98 flags = cmp_nxydumps.COMPARE_FLAGS_EXACT_GAPS | cmp_nxydumps.COMPARE_FLAGS_ZERO_IS_GAP | cmp_nxydumps.COMPARE_FLAGS_ALLOW_STARTSTOP_MISALIGN
102 cmp_nxydumps.compare(
"firbank_test_01c_in.dump",
"firbank_test_01c_out.dump", flags = flags, sample_fuzz = 1e-6)
103 cmp_nxydumps.compare(
"firbank_test_01d_in.dump",
"firbank_test_01d_out.dump", flags = flags, sample_fuzz = 1e-6)