@@ -21,18 +21,12 @@ from optparse import OptionParser
importos
importsys
importgi
gi.require_version('Gst','1.0')
fromgi.repositoryimportGObject,Gst
GObject.threads_init()
Gst.init(None)
importlal
fromgstlalimportpipeparts
fromgstlalimportsimplehandler
fromgstlalimportdatasource
fromgstlalimportmultirate_datasource
fromgstlal.streamimportStream
fromligo.lwimportutilsasligolw_utils
...
...
@@ -56,9 +50,9 @@ def parse_command_line():
parser.add_option("--sample-rate",metavar="Hz",default=16384,type="int",help="Sample rate at which to generate the data, should be less than or equal to the sample rate of the measured psds provided, default = 16384 Hz, max 16384 Hz")
parser.add_option("--output-path",metavar="name",default=".",help="Path to output frame files (default = \".\").")
parser.add_option("--output-channel-name",metavar="name",help="The name of the channel in the output frames. The default is the same as the channel name")
parser.add_option("--frame-duration",metavar="s",default=16,type="int",help="Set the duration of the output frames. The duration of the frame file will be multiplied by --frames-per-file. Default: 16s")
parser.add_option("--frames-per-file",metavar="n",default=256,type="int",help="Set the number of frames per file. Default: 256")
parser.add_option("--output-frame-duration",metavar="s",default=16,type="int",help="Set the duration of the output frames. The duration of the frame file will be multiplied by --frames-per-file. Default: 16s")
parser.add_option("--output-frames-per-file",metavar="n",default=256,type="int",help="Set the number of frames per file. Default: 256")