27 from gstlal
import pipeparts
28 from gstlal.pipeparts
import gst
29 from pylal.datatypes
import LIGOTimeGPS
48 def framesrc_test_01a(pipeline, name):
53 location =
"/home/kipp/scratch_local/874100000-20000/cache/874000000-20000.cache"
55 channel_name =
"LSC-STRAIN"
61 head = pipeparts.mkframecppchanneldemux(pipeline, pipeparts.mkcachesrc(pipeline, location = location, cache_src_regex =
"%s.*" % instrument[0]))
62 elem = pipeparts.mkqueue(pipeline,
None, max_size_time = 8 * gst.SECOND)
63 pipeparts.src_deferred_link(head,
"%s:%s" % (instrument, channel_name), elem.get_pad(
"sink"))
66 head = pipeparts.mkprogressreport(pipeline, head,
"src")
67 head = pipeparts.mkchecktimestamps(pipeline, head)
68 pipeparts.mkfakesink(pipeline, head)
86 test_common.build_and_run(framesrc_test_01a,
"framesrc_test_01a", segment = (LIGOTimeGPS(874000016), LIGOTimeGPS(874000600)))