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

add pairty violation / birefringence pycbc waveform plugin

parent 06fcb663
No related branches found
No related tags found
No related merge requests found
from pycbc.waveform import get_fd_waveform
import numpy as np
import pycbc.conversions
import lal
def IMRPhenomParity(parity_lambdatilt, **kwds):
if 'approximant' in kwds:
kwds.pop("approximant")
hp, hc = get_fd_waveform(approximant="IMRPhenomXPHM", **kwds)
tempVal = lal.H_SI * lal.PI * lal.PI * r / parity_lambdatilt;
deltaPhi1 = tempVal * f * f;
hp_parity = hp + hc * deltaPhi1;
hc_parity = hc - hp * deltaPhi1;
return hpd,hcd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment