Commit 4a979f4c authored by Moritz Huebner's avatar Moritz Huebner

Merge branch...

Merge branch '551-plot_time_domain_data-and-time-of-coalescence-for-waveform-seobnrv4' into 'master'

Resolve "Plot_time_domain_data and time of coalescence for waveform SEOBNRv4"

Closes #551

See merge request lscsoft/bilby!909
parents 0caafc17 9214f67b
from __future__ import division, print_function
import numpy as np
from ..core import utils
......@@ -408,11 +406,10 @@ def _base_lal_cbc_fd_waveform(
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)
dt = 1 / hplus.deltaF + (hplus.epoch.gpsSeconds + hplus.epoch.gpsNanoSeconds * 1e-9)
time_shift = np.exp(-1j * 2 * np.pi * dt * frequency_array[frequency_bounds])
h_plus[frequency_bounds] *= time_shift
h_cross[frequency_bounds] *= time_shift
return dict(plus=h_plus, cross=h_cross)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment