-
Notifications
You must be signed in to change notification settings - Fork 42
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
Only check isnan if applicable #54
base: master
Are you sure you want to change the base?
Conversation
As per the discussion in #53, I added a check if |
I agree it's not ideal, but the only other solution I can see is to define CI errors, but AFAICT it's no related to |
Bump. |
@nalimilan Thanks for the bump, I've been busy with other things and I don't think I have time to make the PR to Base right now. Feel free to run with it if you have time before I do. |
@@ -695,6 +696,8 @@ end | |||
@test quantile(skipmissing([1, missing, 2]), 0.5) === 1.5 | |||
@test quantile([1], 0.5) === 1.0 | |||
|
|||
@test quantile(Millisecond.(1:10), 0.5) == Millisecond(5) |
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.
@test quantile(Millisecond.(1:10), 0.5) == Millisecond(5) | |
@test quantile(Millisecond.(0:10), 0.5) == Millisecond(5) |
@@ -1049,7 +1049,7 @@ end | |||
|
|||
# When a ≉ b, b-a may overflow | |||
# When a ≈ b, (1-γ)*a + γ*b may not be increasing with γ due to rounding | |||
if isfinite(a) && isfinite(b) && | |||
if applicable(isfinite, a) && isfinite(a) && isfinite(b) && |
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.
if applicable(isfinite, a) && isfinite(a) && isfinite(b) && | |
if applicable(isfinite, a) && isfinite(a) && | |
applicable(isfinite, b) && isfinite(b) |
Fix https://github.com/JuliaLang/Statistics.jl/issues/53