diff --git a/bilby/gw/source.py b/bilby/gw/source.py index 6fc9d354f4741abe875a6a94f12c56d08c901482..4b3751cb18387b91c7c5ec0a63b9bfafbc51504c 100644 --- a/bilby/gw/source.py +++ b/bilby/gw/source.py @@ -396,6 +396,13 @@ def _base_lal_cbc_fd_waveform( h_plus *= frequency_bounds h_cross *= frequency_bounds + if wf_func == lalsim_SimInspiralFD: + dt = 1. / delta_frequency - (hplus.epoch.gpsSeconds + hplus.epoch.gpsNanoSeconds * 1e-9) + h_plus *= np.exp( + -1j * 2 * np.pi * dt * frequency_array) + h_cross *= np.exp( + -1j * 2 * np.pi * dt * frequency_array) + return dict(plus=h_plus, cross=h_cross)