From c68945482618578c0b9c81790e1aff4bedfb1ac5 Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Sun, 20 May 2018 14:24:03 +1000 Subject: [PATCH] Fix misnamed likelihood --- examples/other_examples/alternative_likelihoods.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/other_examples/alternative_likelihoods.py b/examples/other_examples/alternative_likelihoods.py index 1b6c0b9f1..329f9f339 100644 --- a/examples/other_examples/alternative_likelihoods.py +++ b/examples/other_examples/alternative_likelihoods.py @@ -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 GaussianGravitationalWaveTransient(): +class GaussianLikelihood(): 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 = GaussianGravitationalWaveTransient(time, data, waveform_generator) +likelihood = GaussianLikelihood(time, data, waveform_generator) # From hereon, the syntax is exactly equivalent to other tupak examples # We make a prior -- GitLab