Skip to content
Snippets Groups Projects
Commit 2c0edbc3 authored by Yifan Wang's avatar Yifan Wang
Browse files

add IMRPhenomD_NRTitdal_Parity

parent a3f79e3f
Branches
No related tags found
No related merge requests found
File added
def gen(**kwds):
from pycbc.waveform import get_fd_waveform
import lal
if 'approximant' in kwds:
kwds.pop("approximant")
hp, hc = get_fd_waveform(approximant="IMRPhenomD_NRTidal", **kwds)
temp = kwds['parity_Amu'] / 1e9 / lal.QE_SI * lal.H_SI * lal.PI * lal.PI / lal.H0_SI
hp_parity = hp + hc * temp * hp.sample_frequencies **2
hc_parity = hc - hp * temp * hp.sample_frequencies **2
return hp_parity, hc_parity
#pycbc.waveform.add_custom_waveform('IMRPhenomParity', IMRPhenomParity, 'frequency', force=True)
def add_me(**kwds):
kwds['cpu_fd']['IMRPhenomD_NRTidal_Parity'] = gen
kwds['filter_time_lengths']['IMRPhenomD_NRTidal_Parity'] = kwds['filter_time_lengths']['IMRPhenomD']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment