Commit 058a0a0e authored by moritz's avatar moritz
Browse files

Moritz Huebner: Some minor streamlining

parent a065d699
......@@ -75,9 +75,7 @@ class Sampler:
self.import_external_sampler()
self.active_parameter_values = self.prior.__dict__.copy()
del self.active_parameter_values['name']
del self.active_parameter_values['frequency_array']
del self.active_parameter_values['time_array']
self.search_parameter_keys = []
self.ndim = 0
self.initialise_parameters()
......@@ -143,7 +141,6 @@ class Sampler:
def loglikelihood(self, theta):
for i, k in enumerate(self.search_parameter_keys):
self.likelihood.source.__dict__[k] = theta[i]
# print(self.likelihood.source.luminosity_distance)
return self.likelihood.log_likelihood()
def run_sampler(self):
......
......@@ -56,9 +56,9 @@ prior = source.copy()
prior.mass_1 = peyote.parameter.Parameter(
'mass_1', prior=peyote.prior.Uniform(lower=35, upper=37),
latex_label='$m_1$')
prior.mass_2 = peyote.parameter.Parameter(
'mass_2', prior=peyote.prior.Uniform(lower=27, upper=31),
latex_label='$m_2$')
# prior.mass_2 = peyote.parameter.Parameter(
# 'mass_2', prior=peyote.prior.Uniform(lower=27, upper=31),
# latex_label='$m_2$')
#prior.iota = peyote.parameter.Parameter(
# 'iota', prior=peyote.prior.Uniform(lower=0, upper=np.pi),
# latex_label='$iota$')
......
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