Skip to content

Commit

Permalink
formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
williyamshoe committed Jan 23, 2024
1 parent c4101e7 commit e3655ad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hierarc/Likelihood/hierarchy_likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e3655ad

Please sign in to comment.