Skip to content

Commit

Permalink
fix: fix bug in problem indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jan 18, 2024
1 parent 738f988 commit c73c073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/problems/problem_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Base.@propagate_inbounds function Base.getindex(prob::AbstractSciMLProblem, sym)
error("Invalid indexing of problem: $sym is not a state, parameter, or independent variable")
end
elseif symbolic_type(sym) == ArraySymbolic()
return map(s -> prob[s], sym)
return map(s -> prob[s], collect(sym))
else
sym isa AbstractArray || error("Invalid indexing of problem")
return map(s -> prob[s], sym)
Expand Down

0 comments on commit c73c073

Please sign in to comment.