Skip to content

Commit

Permalink
JuliaFormatter.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Nov 9, 2023
1 parent 024f7b1 commit c428d22
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ext/DiffEqDevToolsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function chi2(gaussian_estimate, actual_value)
diff = μ - actual_value
if iszero(Σ)
if iszero(diff)
return 1
return 1
else
throw(SingularException())
end
Expand All @@ -20,14 +20,22 @@ function chi2(gaussian_estimate, actual_value)
return chi2_pinv
end

function DiffEqDevTools.appxtrue(sol::ProbNumDiffEq.ProbODESolution, ref::TestSolution; kwargs...)
function DiffEqDevTools.appxtrue(
sol::ProbNumDiffEq.ProbODESolution,
ref::TestSolution;
kwargs...,
)
ref.dense = sol.dense
out = DiffEqDevTools.appxtrue(mean(sol), ref; kwargs...)
out = _add_prob_errors!(out, sol, ref.interp)
return out
end

function DiffEqDevTools.appxtrue(sol::ProbNumDiffEq.ProbODESolution, ref::SciMLBase.AbstractODESolution; kwargs...)
function DiffEqDevTools.appxtrue(
sol::ProbNumDiffEq.ProbODESolution,
ref::SciMLBase.AbstractODESolution;
kwargs...,
)
out = DiffEqDevTools.appxtrue(mean(sol), ref; dense_errors=sol.dense, kwargs...)
out = _add_prob_errors!(out, sol, ref)
return out
Expand Down

0 comments on commit c428d22

Please sign in to comment.