28 from glue
import segments
29 from lal
import LIGOTimeGPS
30 from gstlal
import pipeio
31 from gstlal
import pipeparts
34 from test_common
import gst
48 segs = segments.segmentlist([segments.segment(LIGOTimeGPS(100), LIGOTimeGPS(200)), segments.segment(LIGOTimeGPS(250), LIGOTimeGPS(300))])
50 head = pipeparts.mksegmentsrc(pipeline, segs, blocksize = 1)
51 head = pipeparts.mkcapsfilter(pipeline, head,
"audio/x-raw-int, rate=4")
52 head = pipeparts.mknxydumpsink(pipeline, head,
"%s_out.dump" % name)
54 f = open(
"%s_in.dump" % name,
"w")
55 for t
in numpy.arange(float(seg[0]), float(seg[1]), 0.25):
56 print >>f,
"%g\t%d" % (t, 128
if t
in segs
else 0)
70 seg = segments.segment(LIGOTimeGPS(0), LIGOTimeGPS(350))