Skip to content

Commit

Permalink
use BBHx's L_SI
Browse files Browse the repository at this point in the history
  • Loading branch information
WuShichao committed May 13, 2024
1 parent 914ad67 commit af58fe3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BBHX_PhenomD.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import math
import numpy as np
from scipy.interpolate import interp1d
from bbhx.utils.constants import MTSUN_SI, YRSID_SI
from bbhx.utils.constants import MTSUN_SI, YRSID_SI, L_SI
from bbhx.waveformbuild import BBHWaveformFD
from pycbc.coordinates import TIME_OFFSET_20_DEGREES, lisa_to_ssb, ssb_to_lisa

Expand Down Expand Up @@ -214,9 +214,9 @@ def bbhx_fd(ifos=None, run_phenomd=True, tdi=None,
from pycbc.psd.analytical_space import omega_length
if sample_points is None:
# assume all channels share the same sample_frequencies
omega_len = omega_length(f=output[channel].sample_frequencies, len_arm=2.5e9)
omega_len = omega_length(f=output[channel].sample_frequencies, len_arm=L_SI)
else:
omega_len = omega_length(f=sample_points, len_arm=2.5e9)
omega_len = omega_length(f=sample_points, len_arm=L_SI)
rescale = 2j*np.sin(2*omega_len)*np.exp(-2j*omega_len)
for key in output:
output[key] *= rescale
Expand Down

0 comments on commit af58fe3

Please sign in to comment.