Bug fix for injection filtering when only injection file is provided as input instead of injection frames.
Previously implemented logic in inspiral.py and gstlal_inspiral for analyzing injection frames set the injection file to None when the user provided only the injection-file, making the code non-backward compatible.
- This MR adds an extra flag
--inject-in-noiseas an option ingstlal_inspiralwhich tells the job to use theinjection-fileto make the injection in h(t). - This flag should only be used when the datasource is a data-find-server or a frame-cache pointing to detector noise i.e. when injection-frame-cache is not specified in the configuration file
config.yml.
Test runs:
- with
--inject-in-noise: https://ldas-jobs.ligo.caltech.edu/~divya.singh/observing/4/dev/offline-inj_frames/fix_injfile_test/injection_recovery.html - with noiseless frames : https://ldas-jobs.ligo.caltech.edu/~divya.singh/observing/4/dev/offline-inj_frames/fix_injfile_test_frames/injection_recovery.html
Rundir on CIT: /home/divya.singh/observing/4/dev/offline-inj_frames/fix_injfile_test
Edited by Divya Singh