Add support for waveform uncertainty
With the appearance of new models (like heron) which are capable of producing not only a waveform but also a standard deviation on that waveform it would be nice for bilby
to have a way to incorporate this extra information in inference.
This should be possible to include as an additional PSD term in the calculation of match between the model.
As far as I can tell this would require updates to the bilby.gw.waveform_generator.WaveformGenerator
object, to allow the additional information to be collected from the model, and also an overloaded class based on bilby.gw.likelihood.GravitationalWaveTransient
to calculate the SNR and then likelihood with the adapted PSD.
I'm happy to take point on this, but I wanted to get some input about whether you'd rather see this implemented as an update to the existing classes, as new classes inheriting the existing ones, or indeed, if you'd rather this was functionality I added to the heron
package instead.