-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use index guessing functionality moved to FindFirstFunctions.jl
(Guesser
)
#323
Conversation
f = +/-Inf
get_idx
when f = +/-Inf
Update: will use the updated version of |
get_idx
when f = +/-Inf
FindFirstFunctions.jl
(``)
FindFirstFunctions.jl
(``)FindFirstFunctions.jl
(Guesser
)
src/derivatives.jl
Outdated
@@ -1,16 +1,11 @@ | |||
function derivative(A, t, order = 1) | |||
function derivative(A, t, order = 1; iguess = A.iguesser) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need iguess
as a kwarg here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To support a user-supplied iguess
:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah wait no that's only for interpolation, shouldn't we support that for derivatives too like this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But in that case it should be documented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the time steps is the same, we should just use iguesser from interpolation objects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that would be worth it. IMO, users should not give iguess
themselves for each derivative/interpolation computation (not the construction).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, but you want to keep https://github.com/SouthEndMusic/DataInterpolations.jl/blob/3debd2909676a0c315ee41a76b90fe9ab146d6e8/src/DataInterpolations.jl#L25-L27 (as it is already there)? To me it feels inconsistent to have it for interpolations but not for derivatives
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove it as it is not documented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks for taking the time to discuss this 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out it is not tested either
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Weirdly doc builds' registry is not getting updated and hence its failing.
@thazhemadam is there some issue with the cache? I'm going to just merge. |
I think it might be a transient issue. I don't see it happening on |
Fix #322.