Skip to content

Commit

Permalink
Avoid wrong broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
simsurace committed Mar 10, 2024
1 parent e886696 commit 689acfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/likelihoods/gaussian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function expected_loglikelihood(
q_f::AbstractVector{<:Normal},
y::AbstractVector{<:Real},
)
return sum(_gaussian_exp_loglikelihood_kernel.(getfield.(liks, :σ²), q_f, y))
return sum(_gaussian_exp_loglikelihood_kernel.(only.(getfield.(liks, :σ²)), q_f, y))
end

function _gaussian_exp_loglikelihood_kernel(σ², q_f, y)
Expand Down

0 comments on commit 689acfb

Please sign in to comment.