-
-
Notifications
You must be signed in to change notification settings - Fork 107
Add the median to EnsembleSummary and adjust the plot recipe #134
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
Conversation
Add a test for the median call? |
Codecov Report
@@ Coverage Diff @@
## master #134 +/- ##
=========================================
- Coverage 6.89% 6.88% -0.02%
=========================================
Files 40 40
Lines 2959 2964 +5
=========================================
Hits 204 204
- Misses 2755 2760 +5
Continue to review full report at Codecov.
|
I'm not quite sure what test you're suggesting. Checking that EDIT: I just found test/downstream/ensemble_zero_length.jl, it seems like I could add a line there. |
@chriselrod Looks like LabelledArrays conversions may have led to a downstream issue? |
Another LoopVectorization + ArrayInterface 4 here: https://github.com/SciML/SciMLBase.jl/runs/5083436845?check_suite_focus=true#step:6:56 I'm not sure if it's a Pkg bug, because we've never really gotten a reproducer/had someone share a problematic environment. Whenever anyone reports the error, as soon as they add one of the packages to report the status, Pkg re-resolves, installs a compatible version, and then the problem goes away. |
@ChrisRackauckas, I guess you were talking about this LabelledArrays Tests: Error During Test at /home/runner/.julia/packages/SafeTestsets/A83XK/src/SafeTestsets.jl:25
Got exception outside of a @test
LoadError: type Array has no field x
Stacktrace:
[1] getproperty(x::Vector{Float64}, f::Symbol)
@ Base ./Base.jl:33
[2] f1(du::Vector{Float64}, u::LabelledArrays.LArray{Float64, 1, Vector{Float64}, (x = 1:4, y = 5:8)}, p::Vector{Float64}, t::Float64)
@ Main.##282 ~/work/SciMLBase.jl/SciMLBase.jl/downstream/test/downstream/labelledarrays.jl:20
[3] (::SciMLBase.ODEFunction{true, typeof(Main.##282.f1), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing})(::Vector{Float64}, ::Vararg{Any, N} where N)
@ SciMLBase ~/work/SciMLBase.jl/SciMLBase.jl/src/scimlfunctions.jl:334
The PR added a method: julia> using LabelledArrays
julia> A = @LArray [1,2,3] (:a,:b,:c)
3-element LArray{Int64, 1, Vector{Int64}, (:a, :b, :c)}:
:a => 1
:b => 2
:c => 3
julia> convert(AbstractVector{Float64}, A)
3-element LArray{Float64, 1, Vector{Float64}, (:a, :b, :c)}:
:a => 1.0
:b => 2.0
:c => 3.0 Even though this is in |
Not really. In the status output here: https://github.com/SciML/SciMLBase.jl/runs/5083436845?check_suite_focus=true#step:6:36 there is no LoopVectorization present which means that ArrayInterface is free to be whatever it wants. It is only after the test start running and the test specific dependencies are installed that LoopVectorization is present: https://github.com/SciML/SciMLBase.jl/runs/5083436845?check_suite_focus=true#step:6:336 but then ArrayInterface is downgraded: https://github.com/SciML/SciMLBase.jl/runs/5083436845?check_suite_focus=true#step:6:265. So at no point do you have both LoopVectorization and ArrayInterface v4 in a project. |
The error LoopVectorization throws is one we'd get if it were hypothetically paired with ArrayInterface 4, but not if it were paired with ArrayInterface 3. I do not know how or why this is, but it keeps causing test failures. It is possible that another package is guilty of having made the switch from returning |
The checkmark is in yellow. And in the bottom of the log we see:
So, it seems that one version of ArrayInterface is loaded already. But |
I guess it is this stuff: Lines 12 to 16 in 176e987
|
Fixes #132
The following script can be used for a before/after comparison:
Now, the plot recipe plots the median and quantiles and the resulting plot becomes more easily interpretable.
I did not add any new tests or adjust version numbers, so please let me know what should be done in these regards.