29 from gstlal
import pipeparts
55 mix = numpy.random.random((initial_channels, channels)).astype(
"float64")
61 assert 1 <= initial_channels <= 2
62 head =
test_common.gapped_test_src(pipeline, buffer_length = buffer_length, rate = rate, width = width, channels = initial_channels, test_duration = test_duration, gap_frequency = gap_frequency, gap_threshold = gap_threshold, control_dump_filename =
"%s_control.dump" % name)
63 head = pipeparts.mkmatrixmixer(pipeline, head, matrix = mix)
64 head = tee = pipeparts.mktee(pipeline, head)
66 head = pipeparts.mktogglecomplex(pipeline, head)
67 head = pipeparts.mkchecktimestamps(pipeline, head)
68 head = pipeparts.mktogglecomplex(pipeline, head)
69 head = pipeparts.mkchecktimestamps(pipeline, head)
71 pipeparts.mknxydumpsink(pipeline, pipeparts.mkqueue(pipeline, head),
"%s_out.dump" % name)
72 pipeparts.mknxydumpsink(pipeline, pipeparts.mkqueue(pipeline, tee),
"%s_in.dump" % name)
92 cmp_nxydumps.compare(
"togglecomplex_test_01a_in.dump",
"togglecomplex_test_01a_out.dump", flags = cmp_nxydumps.COMPARE_FLAGS_EXACT_GAPS)
94 cmp_nxydumps.compare(
"togglecomplex_test_01b_in.dump",
"togglecomplex_test_01b_out.dump", flags = cmp_nxydumps.COMPARE_FLAGS_EXACT_GAPS)
96 cmp_nxydumps.compare(
"togglecomplex_test_01c_in.dump",
"togglecomplex_test_01c_out.dump", flags = cmp_nxydumps.COMPARE_FLAGS_EXACT_GAPS)
98 cmp_nxydumps.compare(
"togglecomplex_test_01d_in.dump",
"togglecomplex_test_01d_out.dump", flags = cmp_nxydumps.COMPARE_FLAGS_EXACT_GAPS)