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

adding plots for parity violation waveform

parent 11cdb81a
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
import pycbc.waveform
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.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)
\ No newline at end of file
This diff is collapsed.
import birefringence_waveform
from pycbc.waveform import fd_approximants
# List of fd approximants that are currently available
print(fd_approximants())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment