Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
3
3OGC-parity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yifan Wang
3OGC-parity
Commits
32d5e813
Commit
32d5e813
authored
3 years ago
by
Stephanie Brown
Browse files
Options
Downloads
Patches
Plain Diff
Update waveform to match IRPhenomTPHMParity
parent
7ff7e9c3
Branches
Branches containing commit
No related tags found
1 merge request
!1
Update IMRPhenomTPHMParity
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
waveform/IMRPhenomParity.py
+0
-23
0 additions, 23 deletions
waveform/IMRPhenomParity.py
waveform/setup.py
+32
-0
32 additions, 0 deletions
waveform/setup.py
with
32 additions
and
23 deletions
waveform/IMRPhenomParity.py
deleted
100644 → 0
+
0
−
23
View file @
7ff7e9c3
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
'
]
This diff is collapsed.
Click to expand it.
waveform/setup.py
0 → 100644
+
32
−
0
View file @
32d5e813
"""
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)
'
,
],
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment