diff --git a/peyote/sampler.py b/peyote/sampler.py index 295fc957f635983355cd7ab1b73e76c64794b82f..a40c6b397f0557427ae2458bff46b9c4442d85a5 100644 --- a/peyote/sampler.py +++ b/peyote/sampler.py @@ -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): diff --git a/tutorials/BasicTutorial.py b/tutorials/BasicTutorial.py index 14231e8d08aaaee9e38ae791cc2ef365f3016cca..ced6c157921a766719ce361d337435fc2fcde718 100644 --- a/tutorials/BasicTutorial.py +++ b/tutorials/BasicTutorial.py @@ -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$')