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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yifan Wang
3OGC-parity
Commits
740214b6
Commit
740214b6
authored
4 years ago
by
Yifan Wang
Browse files
Options
Downloads
Patches
Plain Diff
add pairty violation waveform
parent
1874312e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
birefringence-waveform/waveform.py
+5
-7
5 additions, 7 deletions
birefringence-waveform/waveform.py
with
5 additions
and
7 deletions
birefringence-waveform/waveform.py
+
5
−
7
View file @
740214b6
...
...
@@ -3,17 +3,15 @@ import numpy as np
import
pycbc.conversions
import
lal
def
IMRPhenomParity
(
parity_
lambdatilt
,
**
kwds
):
def
IMRPhenomParity
(
parity_
Amu
,
**
kwds
):
if
'
approximant
'
in
kwds
:
kwds
.
pop
(
"
approximant
"
)
hp
,
hc
=
get_fd_waveform
(
approximant
=
"
IMRPhenomXPHM
"
,
**
kwds
)
temp
Val
=
lal
.
H
_SI
*
lal
.
PI
*
lal
.
PI
*
r
/
parity_lambdatilt
;
temp
=
parity_Amu
*
1e9
*
lal
.
QE
_SI
*
lal
.
PI
*
lal
.
PI
/
lal
.
H0_SI
deltaPhi1
=
tempVal
*
f
*
f
;
hp_parity
=
hp
+
hc
*
temp
*
hp
.
sample_frequencies
**
2
hc_parity
=
hc
-
hp
*
temp
*
hp
.
sample_frequencies
**
2
hp_parity
=
hp
+
hc
*
deltaPhi1
;
hc_parity
=
hc
-
hp
*
deltaPhi1
;
return
hpd
,
hcd
return
hp_parity
,
hc_parity
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