From e3655adcdda028e2a993c3538d712cb0bfbd27bb Mon Sep 17 00:00:00 2001 From: williyamshoe Date: Mon, 22 Jan 2024 17:41:33 -0800 Subject: [PATCH] formatting changes --- hierarc/Likelihood/hierarchy_likelihood.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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)