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
196ce4a9
Commit
196ce4a9
authored
Sep 6, 2021
by
Yifan Wang
Browse files
Options
Downloads
Patches
Plain Diff
correct tphm length estimator
parent
0fe91a20
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
waveform/wrapper_tphm_parity/parity_TPHM.py
+23
-4
23 additions, 4 deletions
waveform/wrapper_tphm_parity/parity_TPHM.py
waveform/wrapper_tphm_parity/setup.py
+33
-0
33 additions, 0 deletions
waveform/wrapper_tphm_parity/setup.py
with
56 additions
and
4 deletions
waveform/wrapper_tphm_parity/parity_TPHM.py
+
23
−
4
View file @
196ce4a9
Unstaged
changes
after
reset
:
def
gen
(
**
kwds
):
D
IMRPhenomTPHMParity
/
parity_TPHM
.
py
from
pycbc.waveform
import
get_fd_waveform
M
waveform
/
wrapper_mpv_waveform
/
mpvwaveform
.
py
import
lal
M
waveform
/
wrapper_tphm_parity
/
parity_TPHM
.
py
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
This diff is collapsed.
Click to expand it.
waveform/wrapper_tphm_parity/setup.py
+
33
−
0
View file @
196ce4a9
"""
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)
'
,
],
)
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