From 3ec61a40e11baa41373cb3a6a97fb2fde1b2ee5f Mon Sep 17 00:00:00 2001 From: Rory Smith <rory.smith@ligo.org> Date: Tue, 25 Feb 2020 15:22:27 -0600 Subject: [PATCH] fix td waveform epoch --- bilby/gw/source.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bilby/gw/source.py b/bilby/gw/source.py index 6fc9d354f..4b3751cb1 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) -- GitLab