Commit 5e12fbc1 authored by Moritz Huebner's avatar Moritz Huebner

Moritz Huebner: Added check if the prior has been set to None. Will set it to...

Moritz Huebner: Added check if the prior has been set to None. Will set it to an empty dict in that case.
parent 99d804fe
Pipeline #20514 passed with stages
in 16 minutes and 16 seconds
......@@ -73,12 +73,23 @@ class GravitationalWaveTransient(Likelihood):
self.delta_distance = 0
self.distance_prior_array = np.array([])
self.setup_distance_marginalization()
prior['luminosity_distance'] = 1
self.prior['luminosity_distance'] = 1
if self.phase_marginalization:
self.bessel_function_interped = None
self.setup_phase_marginalization()
prior['psi'] = 0
self.prior['psi'] = 0
@property
def prior(self):
return self.__prior
@prior.setter
def prior(self, prior):
if prior is not None:
self.__prior = prior
else:
self.__prior = dict()
def noise_log_likelihood(self):
log_l = 0
......
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