Skip to content

Commit

Permalink
Remove user-supplied iguess option
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Aug 3, 2024
1 parent 3debd29 commit 2e9b14c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/DataInterpolations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ include("online.jl")
include("show.jl")

(interp::AbstractInterpolation)(t::Number) = _interpolate(interp, t)
function (interp::AbstractInterpolation)(t::Number, iguess::Integer)
_interpolate(interp, t; iguess)
end

function (interp::AbstractInterpolation)(t::AbstractVector)
u = get_u(interp.u, t)
Expand Down
3 changes: 2 additions & 1 deletion src/derivatives.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
function derivative(A, t, order = 1; iguess = A.iguesser)
function derivative(A, t, order = 1)
((t < A.t[1] || t > A.t[end]) && !A.extrapolate) && throw(ExtrapolationError())
iguess = A.iguesser

return if order == 1
_derivative(A, t, iguess)
Expand Down
4 changes: 2 additions & 2 deletions src/interpolation_methods.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function _interpolate(A, t; iguess = A.iguesser)
function _interpolate(A, t)
((t < A.t[1] || t > A.t[end]) && !A.extrapolate) &&
throw(ExtrapolationError())
return _interpolate(A, t, iguess)
return _interpolate(A, t, A.iguesser)
end

# Linear Interpolation
Expand Down

0 comments on commit 2e9b14c

Please sign in to comment.