Commit 9295cb1d authored by Colm Talbot's avatar Colm Talbot
Browse files

update tests.py to work with new source interface

parent 668a3253
Pipeline #15853 passed with stages
in 3 minutes and 3 seconds
......@@ -48,9 +48,9 @@ class Test(unittest.TestCase):
likelihood = peyote.likelihood.Likelihood(
[self.msd['IFO']], self.msd['source'])
prior = self.msd['simulation_parameters'].copy()
dL = self.msd['simulation_parameters']['luminosity_distance']
prior['luminosity_distance'] = peyote.parameter.Parameter(
prior = self.msd['source'].copy()
dL = self.msd['source'].luminosity_distance
prior.luminosity_distance = peyote.parameter.Parameter(
'luminosity_distance',
prior=peyote.prior.Uniform(lower=dL-10, upper=dL+10))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment