Skip to content
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

Merged
merged 7 commits into from
Aug 5, 2024

Conversation

SouthEndMusic
Copy link
Member

Fix #322.

@SouthEndMusic SouthEndMusic changed the title Fix problem in get_idx when f = +/-Inf Fix problem in get_idx when f = +/-Inf Aug 1, 2024
@SouthEndMusic SouthEndMusic marked this pull request as draft August 2, 2024 12:55
@SouthEndMusic
Copy link
Member Author

Update: will use the updated version of FindFirstFunctions which includes the fix

@SouthEndMusic SouthEndMusic changed the title Fix problem in get_idx when f = +/-Inf Use index guessing functionality moved to FindFirstFunctions.jl (``) Aug 2, 2024
@SouthEndMusic SouthEndMusic changed the title Use index guessing functionality moved to FindFirstFunctions.jl (``) Use index guessing functionality moved to FindFirstFunctions.jl (Guesser) Aug 2, 2024
@SouthEndMusic SouthEndMusic marked this pull request as ready for review August 2, 2024 16:18
@@ -1,16 +1,11 @@
function derivative(A, t, order = 1)
function derivative(A, t, order = 1; iguess = A.iguesser)
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

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?

Copy link
Member Author

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

Copy link
Member

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.

Copy link
Member

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).

Copy link
Member Author

@SouthEndMusic SouthEndMusic Aug 3, 2024

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

Copy link
Member

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.

Copy link
Member Author

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 👍

Copy link
Member Author

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

Copy link
Member

@sathvikbhagavan sathvikbhagavan left a 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.

@ChrisRackauckas
Copy link
Member

@thazhemadam is there some issue with the cache?

I'm going to just merge.

@ChrisRackauckas ChrisRackauckas merged commit 35db42e into SciML:master Aug 5, 2024
27 of 30 checks passed
@thazhemadam
Copy link
Member

I think it might be a transient issue. I don't see it happening on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when extrapolating to -Inf in v6.1.0
4 participants