From 689acfba4265a78fede77e6bad0d129c06c599e2 Mon Sep 17 00:00:00 2001 From: Simone Carlo Surace Date: Sun, 10 Mar 2024 22:17:34 +0100 Subject: [PATCH] Avoid wrong broadcast --- src/likelihoods/gaussian.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/likelihoods/gaussian.jl b/src/likelihoods/gaussian.jl index e8ee51e..c8c2a75 100644 --- a/src/likelihoods/gaussian.jl +++ b/src/likelihoods/gaussian.jl @@ -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)