gwastro / pycbc

Core package to analyze gravitational-wave data, find signals, and study their parameters. This package was used in the first direct detection of gravitational waves (GW150914), and is used in the ongoing analysis of LIGO/Virgo data.
http://pycbc.org
GNU General Public License v3.0
307 stars 344 forks source link

Edit make banksim to allow external injection file #4808

Open divyajyoti09 opened 2 weeks ago

divyajyoti09 commented 2 weeks ago

Standard information about the request

This is a: new feature

This change affects: pycbc_make_banksim function

This change changes: documentation, banksim generator

Motivation

At the moment, only lalapps_inspinj function is allowed for creating injection file through the workflow generator pycbc_make_banksim. With this update, an externally created injection file can also be called.

Contents

The code allows for option to use inj.xml provided by user if the user chooses [external_injection] section instead of [inspinj] in the config file.

It also indicates the same in the documentation text.

Testing performed

I have tested it by generating the workflow using inj.xml generated by pycbc_create_injections. It works fine.