pycbc icon indicating copy to clipboard operation
pycbc copied to clipboard

Adding warning for no injections

Open aleynaakyuz opened this issue 1 year ago • 1 comments

This raises a warning if no injections are applied during an inference job.

aleynaakyuz avatar Oct 21 '24 19:10 aleynaakyuz

@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.

ahnitz avatar Oct 21 '24 21:10 ahnitz

Think about potential changes here. https://github.com/gwastro/pycbc/blob/master/pycbc/inject/inject.py#L561

ahnitz avatar Nov 07 '24 20:11 ahnitz