Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
lscsoft
bilby
Commits
810581f0
Commit
810581f0
authored
6 years ago
by
Colm Talbot
Browse files
Options
Downloads
Patches
Plain Diff
rename lambdai -> lambda_i for consistency
parent
c908a897
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!171
Resolve "add neutron star merger to examples"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tupak/gw/prior.py
+2
-2
2 additions, 2 deletions
tupak/gw/prior.py
tupak/gw/prior_files/binary_neutron_stars.prior
+2
-2
2 additions, 2 deletions
tupak/gw/prior_files/binary_neutron_stars.prior
tupak/gw/source.py
+5
-5
5 additions, 5 deletions
tupak/gw/source.py
with
9 additions
and
9 deletions
tupak/gw/prior.py
+
2
−
2
View file @
810581f0
...
...
@@ -138,8 +138,8 @@ Prior._default_latex_labels = {
'
psi
'
:
'
$\psi$
'
,
'
phase
'
:
'
$\phi$
'
,
'
geocent_time
'
:
'
$t_c$
'
,
'
lambda1
'
:
'
$
\\
Lambda_1$
'
,
'
lambda2
'
:
'
$
\\
Lambda_2$
'
}
'
lambda
_
1
'
:
'
$
\\
Lambda_1$
'
,
'
lambda
_
2
'
:
'
$
\\
Lambda_2$
'
}
class
CalibrationPriorSet
(
PriorSet
):
...
...
This diff is collapsed.
Click to expand it.
tupak/gw/prior_files/binary_neutron_stars.prior
+
2
−
2
View file @
810581f0
...
...
@@ -17,5 +17,5 @@ iota = Sine(name='iota')
# cos_iota = Uniform(name='cos_iota', minimum=-1, maximum=1)
psi = Uniform(name='psi', minimum=0, maximum=np.pi)
phase = Uniform(name='phase', minimum=0, maximum=2 * np.pi)
lambda1 = tupak.prior.Uniform(name='lambda1', minimum=0, maximum=3000 )
lambda2 = tupak.prior.Uniform(name='lambda2', minimum=0, maximum=3000 )
lambda
_
1 = tupak.prior.Uniform(name='lambda
_
1', minimum=0, maximum=3000 )
lambda
_
2 = tupak.prior.Uniform(name='lambda
_
2', minimum=0, maximum=3000 )
This diff is collapsed.
Click to expand it.
tupak/gw/source.py
+
5
−
5
View file @
810581f0
...
...
@@ -255,7 +255,7 @@ def supernova_pca_model(
def
lal_binary_neutron_star
(
frequency_array
,
mass_1
,
mass_2
,
luminosity_distance
,
a_1
,
a_2
,
iota
,
phase
,
ra
,
dec
,
geocent_time
,
psi
,
lambda1
,
lambda2
,
**
kwargs
):
iota
,
phase
,
lambda_1
,
lambda_2
,
ra
,
dec
,
geocent_time
,
psi
,
**
kwargs
):
"""
A Binary Neutron Star waveform model using lalsimulation
Parameters
...
...
@@ -284,9 +284,9 @@ def lal_binary_neutron_star(
The time at coalescence
psi: float
Orbital polarisation
lambda1: float
lambda
_
1: float
Dimensionless tidal deformability of mass_1
lambda2: float
lambda
_
2: float
Dimensionless tidal deformability of mass_2
kwargs: dict
...
...
@@ -323,8 +323,8 @@ def lal_binary_neutron_star(
mean_per_ano
=
0.0
waveform_dictionary
=
lal
.
CreateDict
()
lalsim
.
SimInspiralWaveformParamsInsertTidalLambda1
(
waveform_dictionary
,
lambda1
)
lalsim
.
SimInspiralWaveformParamsInsertTidalLambda2
(
waveform_dictionary
,
lambda2
)
lalsim
.
SimInspiralWaveformParamsInsertTidalLambda1
(
waveform_dictionary
,
lambda
_
1
)
lalsim
.
SimInspiralWaveformParamsInsertTidalLambda2
(
waveform_dictionary
,
lambda
_
2
)
approximant
=
lalsim
.
GetApproximantFromString
(
waveform_approximant
)
...
...
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