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

add working waveform for parity violation

parent 7a025619
Branches
No related tags found
No related merge requests found
__pycache__
.ipynb_checkpoints
import .birefringence_waveform
......@@ -18,4 +18,4 @@ def IMRPhenomParity(parity_Amu, **kwds):
return hp_parity, hc_parity
pycbc.waveform.add_custom_waveform('IMRPhenomParity', IMRPhenomParity, 'frequency', force=True)
\ No newline at end of file
pycbc.waveform.add_custom_waveform('IMRPhenomParity', IMRPhenomParity, 'frequency', force=True)
from pycbc.waveform import get_fd_waveform
import numpy as np
import pycbc.conversions
import lal
def IMRPhenomParity(parity_Amu, **kwds):
if 'approximant' in kwds:
kwds.pop("approximant")
hp, hc = get_fd_waveform(approximant="IMRPhenomXPHM", **kwds)
temp = parity_Amu * 1e9 * lal.QE_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
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment