Skip to content

Commit

Permalink
Maybe fix the version issue this way?
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Nov 16, 2023
1 parent de21d4b commit 2490273
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/DiffEqDevToolsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ function chi2(gaussian_estimate, actual_value)
return convert(eltype(actual_value), Inf)

Check warning on line 18 in ext/DiffEqDevToolsExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/DiffEqDevToolsExt.jl#L17-L18

Added lines #L17 - L18 were not covered by tests
end
end
return diff' *\ diff)
@static if VERSION < v"1.6"

Check warning on line 21 in ext/DiffEqDevToolsExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/DiffEqDevToolsExt.jl#L21

Added line #L21 was not covered by tests
return diff' * (Matrix(Σ) \ diff)
else
return diff' *\ diff)
end
end

function DiffEqDevTools.appxtrue(
Expand Down

0 comments on commit 2490273

Please sign in to comment.