Skip to content

Commit

Permalink
Small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
roflmaostc committed Feb 13, 2024
1 parent b4f6d8e commit 314f9d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ray_optics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ end
function _prepare_ray_forward(target::AbstractArray{T}, ps::VialRayOptics) where T

N = iseven(size(target, 1)) ? T(size(target, 1) - 1) : T(size(target, 1))
radius_pixel = T(N ÷ 2)
radius_pixel = T(N / 2)
in_height = range(-N÷2, N÷2, Int(N))
in_height_si_units = in_height ./ (radius_pixel .+ T(0.1)) .* T(ps.R_outer)
in_height_si_units = in_height ./ (radius_pixel) .* T(ps.R_outer)
# find the intersection with the glass vials
# return both the entrance intersection and exit intersection
heights = distort_rays_vial.(in_height,
Expand Down

0 comments on commit 314f9d0

Please sign in to comment.