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

correct tphm length estimator

parent 0fe91a20
Branches
No related tags found
No related merge requests found
Unstaged changes after reset:
D IMRPhenomTPHMParity/parity_TPHM.py
M waveform/wrapper_mpv_waveform/mpvwaveform.py
M waveform/wrapper_tphm_parity/parity_TPHM.py
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="IMRPhenomTPHM", **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
def imrphenomtphm_length_in_time(**kwargs):
from pycbc.waveform import waveform
"""Estimates the duration of IMRPhenom waveforms that include higher modes.
"""
# Default maximum node number for IMRPhenomHM is 4
# However, the maximum mode number for IMRPhenomTPHM is 5
# The relevant lower order approximant here is IMRPhenomD
return waveform.get_hm_length_in_time("IMRPhenomD", 5, **kwargs)
\ No newline at end of file
"""
setup.py file for testing birefringence pycbc waveform plugin package
"""
from setuptools import Extension, setup, Command
from setuptools import find_packages
VERSION = '0.0.dev0'
setup (
name = 'pycbc-birefringence-TPHM',
version = VERSION,
description = 'An waveform plugin for PyCBC',
author = 'Yifan Wang',
author_email = 'yifan.wang@aei.mpg.de',
url = 'http://www.pycbc.org/',
#download_url = 'https://github.com/gwastro/revchirp/tarball/v%s' % VERSION,
keywords = ['pycbc', 'signal processing', 'gravitational waves'],
py_modules = ['parity_TPHM'],
entry_points = {"pycbc.waveform.fd":"IMRPhenomTPHMParity=parity_TPHM:gen",
"pycbc.waveform.length":"IMRPhenomTPHM=parity_TPHM:imrphenomtphm_length_in_time"},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
],
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment