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

fix: fix symbolic idxs interpolation for RODESolution #673

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/solutions/rode_solutions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

function (sol::RODESolution)(t, ::Type{deriv} = Val{0}; idxs = nothing,
continuity = :left) where {deriv}
sol.interp(t, idxs, deriv, sol.prob.p, continuity)
sol(t, deriv, idxs, continuity)

Check warning on line 66 in src/solutions/rode_solutions.jl

View check run for this annotation

Codecov / codecov/patch

src/solutions/rode_solutions.jl#L66

Added line #L66 was not covered by tests
end
function (sol::RODESolution)(v, t, ::Type{deriv} = Val{0}; idxs = nothing,
continuity = :left) where {deriv}
Expand Down
1 change: 1 addition & 0 deletions test/downstream/solution_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ sol = solve(sprob, ImplicitEM())
@test_throws Exception sol[a]
@test_throws Exception sol[noisy_population_model.a]
@test_throws Exception sol[:a]
@test_nowarn sol(0.5, idxs = noisy_population_model.s1)
### Tests on layered model (some things should not work). ###

@parameters σ ρ β
Expand Down
Loading