Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
bilby
Commits
c6894548
Commit
c6894548
authored
May 20, 2018
by
Gregory Ashton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix misnamed likelihood
parent
bfd5f4da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/other_examples/alternative_likelihoods.py
examples/other_examples/alternative_likelihoods.py
+2
-2
No files found.
examples/other_examples/alternative_likelihoods.py
View file @
c6894548
...
...
@@ -20,7 +20,7 @@ outdir = 'outdir'
# use of the `tupak` waveform_generator to make the signal (more on this later)
# But, one could make this work without the waveform generator.
class
Gaussian
GravitationalWaveTransient
():
class
Gaussian
Likelihood
():
def
__init__
(
self
,
x
,
y
,
waveform_generator
):
self
.
x
=
x
self
.
y
=
y
...
...
@@ -76,7 +76,7 @@ waveform_generator = tupak.waveform_generator.WaveformGenerator(time_duration=ti
# Now lets instantiate a version of out GravitationalWaveTransient, giving it the time, data
# and waveform_generator
likelihood
=
Gaussian
GravitationalWaveTransient
(
time
,
data
,
waveform_generator
)
likelihood
=
Gaussian
Likelihood
(
time
,
data
,
waveform_generator
)
# From hereon, the syntax is exactly equivalent to other tupak examples
# We make a prior
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment