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
70374948
Commit
70374948
authored
6 years ago
by
RorySmith
Browse files
Options
Downloads
Patches
Plain Diff
updating basic tutorial
parent
2802cbd2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/injection_examples/basic_tutorial.py
+0
-7
0 additions, 7 deletions
examples/injection_examples/basic_tutorial.py
with
0 additions
and
7 deletions
examples/injection_examples/basic_tutorial.py
+
0
−
7
View file @
70374948
...
...
@@ -49,9 +49,6 @@ priors = dict()
# not sample any parameter that has a delta-function prior.
<<<<<<<
HEAD
for
key
in
[
'
a_1
'
,
'
a_2
'
,
'
tilt_1
'
,
'
tilt_2
'
,
'
phi_12
'
,
'
phi_jl
'
,
'
psi
'
,
'
ra
'
,
'
dec
'
,
'
geocent_time
'
,
'
phase
'
]:
=======
for
key
in
[
'
a_1
'
,
'
a_2
'
,
'
tilt_1
'
,
'
tilt_2
'
,
'
phi_12
'
,
'
phi_jl
'
,
'
phase
'
,
'
psi
'
,
'
ra
'
,
'
dec
'
,
'
luminosity_distance
'
,
'
iota
'
]:
>>>>>>>
e8b704afba65886f49cb448402a95ae90c468a24
priors
[
key
]
=
injection_parameters
[
key
]
# The above list does *not* include mass_1, mass_2, iota and luminosity_distance, which means those are the parameters
...
...
@@ -62,11 +59,7 @@ priors['geocent_time'] = tupak.prior.Uniform(injection_parameters['geocent_time'
'
geocent_time
'
)
# Initialise the likelihood by passing in the interferometer data (IFOs) and the waveoform generator
<<<<<<<
HEAD
likelihood
=
tupak
.
likelihood
.
GravitationalWaveTransient
(
interferometers
=
IFOs
,
waveform_generator
=
waveform_generator
,
time_marginalization
=
False
,
phase_marginalization
=
False
,
distance_marginalization
=
False
,
prior
=
priors
)
=======
likelihood
=
tupak
.
GravitationalWaveTransient
(
interferometers
=
IFOs
,
waveform_generator
=
waveform_generator
)
>>>>>>>
e8b704afba65886f49cb448402a95ae90c468a24
# Run sampler. In this case we're going to use the `dynesty` sampler
result
=
tupak
.
run_sampler
(
likelihood
=
likelihood
,
priors
=
priors
,
sampler
=
'
dynesty
'
,
npoints
=
1000
,
...
...
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