Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Bilby_Psi4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Samson Leong
Bilby_Psi4
Commits
d117922b
Commit
d117922b
authored
2 years ago
by
Samson Leong
Browse files
Options
Downloads
Patches
Plain Diff
Fix syntax error with comments
parent
6d34d78c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bilby/gw/psi4_waveform_generator.py
+5
-2
5 additions, 2 deletions
bilby/gw/psi4_waveform_generator.py
with
5 additions
and
2 deletions
bilby/gw/psi4_waveform_generator.py
+
5
−
2
View file @
d117922b
...
...
@@ -63,16 +63,19 @@ class Psi4_WaveformGenerator(WaveformGenerator):
self
.
is_psi4_model
=
False
# Correction factor between derivative and differencing
# Details please refers to the article: arxiv:2205.15029
# The argument in the correction factor: 2π kΔf Δt
phase
=
2
*
np
.
pi
*
self
.
frequency_array
/
self
.
sampling_frequency
## This correction_factor depends whether the data is strain or psi4,
## the first is for psi4, (A5) in the article; and
## the second is for strain, see (A4).
self
.
correction_factor
=
\
# (A5) in the draft
(
1
-
np
.
cos
(
phase
))
/
(
0.5
*
phase
*
phase
)
\
if
self
.
is_psi4_model
else
\
# (A4) in the draft
2
*
self
.
sampling_frequency
*
self
.
sampling_frequency
*
(
np
.
cos
(
phase
)
-
1
)
self
.
_cache
=
dict
(
parameters
=
None
,
FD_waveform
=
None
,
TD_waveform
=
None
)
...
...
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