diff --git a/waveform/IMRPhenomParity.py b/waveform/IMRPhenomParity.py deleted file mode 100644 index fca51a2eca3cecb578bb8b274697bcb7865310ef..0000000000000000000000000000000000000000 --- a/waveform/IMRPhenomParity.py +++ /dev/null @@ -1,23 +0,0 @@ -def genIMRPhenomParity(**kwds): - from pycbc.waveform import get_fd_waveform - import lal - #print(kwds) - - if 'approximant' in kwds: - kwds.pop("approximant") - hp, hc = get_fd_waveform(approximant="IMRPhenomXPHM", **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']['IMRPhenomParity'] = genIMRPhenomParity - kwds['filter_time_lengths']['IMRPhenomParity'] = kwds['filter_time_lengths']['IMRPhenomXPHM'] - diff --git a/waveform/setup.py b/waveform/setup.py new file mode 100644 index 0000000000000000000000000000000000000000..9156c867e73404ec68c81f01e605bef656fb28b4 --- /dev/null +++ b/waveform/setup.py @@ -0,0 +1,32 @@ +""" +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-XPHM', + version = VERSION, + description = 'A 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_XPHM'], + entry_points = {"pycbc.waveform.fd":"IMRPhenomXPHMParity=parity_XPHM:gen"}, + 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)', + ], +)