Skip to content
Snippets Groups Projects
Commit 3ec61a40 authored by Rory Smith's avatar Rory Smith Committed by Gregory Ashton
Browse files

fix td waveform epoch

parent ce2a4047
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment