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)
def compare(filename1, filename2, args, kwargs)
def build_and_run(pipelinefunc, name, segment=None, pipelinefunc_kwargs)
def gapped_test_src(pipeline, buffer_length=1.0, rate=2048, width=64, channels=1, test_duration=10.0, wave=5, freq=0, gap_frequency=None, gap_threshold=None, control_dump_filename=None, tags=None, is_live=False, verbose=True)