From b4f6d8e4a6b85ac52fcf67f53e4ef2ceb76bd458 Mon Sep 17 00:00:00 2001 From: roflmaostc Date: Tue, 13 Feb 2024 16:34:26 +0100 Subject: [PATCH] Fix bug in radius conversion --- src/ray_optics.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ray_optics.jl b/src/ray_optics.jl index b549119..2c19b16 100644 --- a/src/ray_optics.jl +++ b/src/ray_optics.jl @@ -163,7 +163,7 @@ function _prepare_ray_forward(target::AbstractArray{T}, ps::VialRayOptics) where # return both the entrance intersection and exit intersection heights = distort_rays_vial.(in_height, radius_pixel, - radius_pixel / T(ps.R_outer * ps.R_inner), + radius_pixel / T(ps.R_outer) * T(ps.R_inner), T(ps.n_vial), T(ps.n_resin))