Skip to content
Snippets Groups Projects

BugFix: gstlal_ll_inj_stream regex fix

Merged Rachael Huxford requested to merge ll_inj_stream_regex_fix into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -58,7 +58,7 @@ def parse_command_line():
# add frame cache/injection options
parser.add_option("--inj-channel", metavar = "channel_name", action = "append", type = "str", help = "Full channel name of noiseless injection channel to be added to hoft. Can only be provided once per ifo.")
parser.add_option("--inj-frame-cache", metavar = "path", help = "Path to frame cache which points at noiseless injection frames")
parser.add_option("--inj-frame-cache-regex", metavar = "inj regex", type = "str", help = "Regex option to use with injection frame cache. Example: H1")
parser.add_option("--inj-frame-cache-regex", metavar = "inj regex", type = "str", help = "Regex option to use with injection frame cache. Must match the frame cache descriptor exactly. Example: H (instead of H1)")
# Add general options
parser.add_option("--output-dir", metavar = "path", action = "append", help = "Path to directory where frames should be written. Must be given once per ifo for which channels are provided as {IFO}=/path/to/directory.")
@@ -251,7 +251,7 @@ with tempfile.NamedTemporaryFile(mode='w',suffix='.cache') as f:
# fetch inj channel from disk
#
inj_src = pipeparts.mklalcachesrc(pipeline, location=f.name, cache_src_regex=options.inj_frame_cache_regex[0])
inj_src = pipeparts.mklalcachesrc(pipeline, location=f.name, cache_src_regex=options.inj_frame_cache_regex)
inj_demux = pipeparts.mkframecppchanneldemux(pipeline, inj_src, do_file_checksum=False, channel_list=list(map("%s:%s".__mod__, hoft_inj_channel_dict.items())))
# allow frame reading and decoding to occur in a diffrent
Loading