diff --git a/hierarc/Likelihood/hierarchy_likelihood.py b/hierarc/Likelihood/hierarchy_likelihood.py index 2b09555..a996350 100644 --- a/hierarc/Likelihood/hierarchy_likelihood.py +++ b/hierarc/Likelihood/hierarchy_likelihood.py @@ -283,9 +283,13 @@ def log_likelihood_single( if self._gamma_in_prior is not None and self._gamma_in_error is not None: if self._gamma_in_array is not None and self._log_m2l_array is not None: - lnlikelihood -= (self._gamma_in_prior - scaling_param_array[-2])**2 / (2 * self._gamma_in_error**2) + lnlikelihood -= ( + self._gamma_in_prior - scaling_param_array[-2] + ) ** 2 / (2 * self._gamma_in_error**2) elif self._gamma_in_array is not None and self._log_m2l_array is None: - lnlikelihood -= (self._gamma_in_prior - scaling_param_array[-1])**2 / (2 * self._gamma_in_error**2) + lnlikelihood -= ( + self._gamma_in_prior - scaling_param_array[-1] + ) ** 2 / (2 * self._gamma_in_error**2) return np.nan_to_num(lnlikelihood)