pycbc
pycbc copied to clipboard
Adding warning for no injections
This raises a warning if no injections are applied during an inference job.
@aleynaakyuz I don't think this will do what you think. I think you'd only see a message if the injection-file option wasn't given. I think what you need to do is to add a logging message into the InjectionSet class itself where the injections are applied.
Think about potential changes here. https://github.com/gwastro/pycbc/blob/master/pycbc/inject/inject.py#L561