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
6cf258aa
Commit
6cf258aa
authored
May 31, 2021
by
Yifan Wang
Browse files
Options
Downloads
Patches
Plain Diff
a working waveform module for IMRPhenomParity
parent
a999c0cf
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
birefringence-waveform/__init__.py
+0
-1
0 additions, 1 deletion
birefringence-waveform/__init__.py
waveform/IMRPhenomParity.py
+22
-0
22 additions, 0 deletions
waveform/IMRPhenomParity.py
waveform/__init__.py
+1
-0
1 addition, 0 deletions
waveform/__init__.py
with
23 additions
and
1 deletion
birefringence-waveform/__init__.py
deleted
100644 → 0
+
0
−
1
View file @
a999c0cf
import
.birefringence_waveform
This diff is collapsed.
Click to expand it.
birefringence-waveform/birefringence_waveform
.py
→
waveform/IMRPhenomParity
.py
+
22
−
0
View file @
6cf258aa
def
genIMRPhenomParity
(
**
kwds
):
from
pycbc.waveform
import
get_fd_waveform
from
pycbc.waveform
import
get_fd_waveform
#import numpy as np
#import pycbc.conversions
import
lal
import
lal
import
pycbc.waveform
def
IMRPhenomParity
(
parity_Amu
,
**
kwds
):
if
'
approximant
'
in
kwds
:
if
'
approximant
'
in
kwds
:
kwds
.
pop
(
"
approximant
"
)
kwds
.
pop
(
"
approximant
"
)
hp
,
hc
=
get_fd_waveform
(
approximant
=
"
IMRPhenomXPHM
"
,
**
kwds
)
hp
,
hc
=
get_fd_waveform
(
approximant
=
"
IMRPhenomXPHM
"
,
**
kwds
)
temp
=
parity_Amu
/
1e9
/
lal
.
QE_SI
*
lal
.
H_SI
*
lal
.
PI
*
lal
.
PI
/
lal
.
H0_SI
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
hp_parity
=
hp
+
hc
*
temp
*
hp
.
sample_frequencies
**
2
hc_parity
=
hc
-
hp
*
temp
*
hp
.
sample_frequencies
**
2
hc_parity
=
hc
-
hp
*
temp
*
hp
.
sample_frequencies
**
2
...
@@ -18,4 +14,9 @@ def IMRPhenomParity(parity_Amu, **kwds):
...
@@ -18,4 +14,9 @@ def IMRPhenomParity(parity_Amu, **kwds):
return
hp_parity
,
hc_parity
return
hp_parity
,
hc_parity
pycbc
.
waveform
.
add_custom_waveform
(
'
IMRPhenomParity
'
,
IMRPhenomParity
,
'
frequency
'
,
force
=
True
)
#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/__init__.py
0 → 100644
+
1
−
0
View file @
6cf258aa
from
.IMRPhenomParity
import
*
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