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
89985e32
Commit
89985e32
authored
Aug 10, 2021
by
Stephanie Brown
Browse files
Options
Downloads
Patches
Plain Diff
add new file
parent
32d5e813
No related branches found
No related tags found
1 merge request
!1
Update IMRPhenomTPHMParity
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
waveform/parity_XPHM.py
+23
-0
23 additions, 0 deletions
waveform/parity_XPHM.py
with
23 additions
and
0 deletions
waveform/parity_XPHM.py
0 → 100644
+
23
−
0
View file @
89985e32
def
gen
(
**
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
'
][
'
IMRPhenomXPHMParity
'
]
=
gen
kwds
[
'
filter_time_lengths
'
][
'
IMRPhenomXPHMParity
'
]
=
kwds
[
'
filter_time_lengths
'
][
'
IMRPhenomXPHM
'
]
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