Skip to content
Snippets Groups Projects

Bug fix for injection filtering when only injection file is provided as input instead of injection frames.

Open Divya Singh requested to merge offline_new-workflow_fix_injfile into offline_new-workflow
All threads resolved!
@@ -558,11 +558,15 @@ def filter_injections_layer(config, dag, ref_psd_cache, svd_bank_cache):
elif config.source.inj_frame_cache and not config.injections.filter[inj_type]["noiseless_inj_frames"]:
inputs.append(Option("frame-cache", config.source.inj_frame_cache, track=False))
filter_opts.append(Option("channel-name", dagutil.format_ifo_args(ifos, config.source.inj_channel_name)))
elif config.source.frame_cache and not config.source.inj_frame_cache:
elif config.source.frame_cache and not config.source.inj_frame_cache and not config.injections.filter[inj_type.lower()]["noiseless_inj_frames"]:
inputs.append(Option("frame-cache", config.source.frame_cache, track=False))
filter_opts.append(Option("channel-name", dagutil.format_ifo_args(ifos, config.source.channel_name)))
else:
filter_opts.extend([
Option("inject-in-noise"),
Option("channel-name", dagutil.format_ifo_args(ifos, config.source.channel_name))
])
elif config.source.data_find_server and not (config.source.frame_cache or config.source.inj_frame_cache) and not config.injections.filter[inj_type.lower()]["noiseless_inj_frames"]:
filter_opts.extend([
Option("inject-in-noise"),
Option("frame-type", dagutil.format_ifo_args(ifos, config.source.frame_type)),
Option("data-find-server", config.source.data_find_server),
Option("channel-name", dagutil.format_ifo_args(ifos, config.source.channel_name)),
Loading