From e2db6cecc135f2000e28a4644ce2faa52b9bc0af Mon Sep 17 00:00:00 2001 From: TacHawkes Date: Thu, 1 Feb 2024 08:30:00 +0100 Subject: [PATCH] Fix missing broadcast --- src/mie.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mie.jl b/src/mie.jl index e20223e..305a89d 100644 --- a/src/mie.jl +++ b/src/mie.jl @@ -713,8 +713,8 @@ function ez_intensities(m, d, λ0, μ, n_env = 1.0, norm = :albedo) λ_env = λ0 / n_env x_env = π * d / λ_env s1, s2 = mie_S1_S2(m_env, x_env, μ; norm) - ipar = abs2(s2) - iper = abs2(s1) + ipar = abs2.(s2) + iper = abs2.(s1) return ipar, iper end