Skip to content

Commit

Permalink
comment adressed
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Jun 28, 2024
1 parent d72c9fb commit 8da6f06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/interpolation_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ function get_idx(tvec, t, iguess; lb = 1, ub_shift = -1, idx_shift = 0, side = :
ub = length(tvec) + ub_shift
return if side == :last
clamp(searchsortedlastcorrelated(tvec, t, iguess) + idx_shift, lb, ub)
else
elseif side == :first
clamp(searchsortedfirstcorrelated(tvec, t, iguess) + idx_shift, lb, ub)
else
error("side must be :first or :last")
end
end

0 comments on commit 8da6f06

Please sign in to comment.