Skip to content

Commit

Permalink
fix: fix symbolic idxs interpolation for RODESolution
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Apr 17, 2024
1 parent 1624ee4 commit d3c0827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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 @@ end

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

0 comments on commit d3c0827

Please sign in to comment.