Skip to content

Injection from file

Vasco Gennari requested to merge injection_from_file into master

Implementing the option to pass an injection from a file.

This is done with the function add_injection_from_file in noise.py, which generates noise and add it to the injection read from file. The injection from file can be used for analysis both in noise generated from pyRing or in zero-noise, like standard injections in pyRing.

Whether an injection from file is passed, the flag injection-from-data=1 needs to be selected. Then, the injection is read from the key data-IFO in the config file as if it was standard data.

Here are some steps required before merging to master:

  • Compare the results between a run with an injection generated from pyRing and the same waveform passed from file, with both zero-noise=[0,1].
  • Add a control to check that the sampling rate, duration and bandpass of the injection from file are compatible with the ones selected for the analysis.
Edited by Gregorio Carullo

Merge request reports

Loading