Skip to content

Commit

Permalink
fix: fix getu with parameter symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Mar 8, 2024
1 parent a7c70c8 commit d1cabe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/state_indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ function _getu(sys, ::ScalarSymbolic, ::SymbolicTypeTrait, sym)
return getu(sys, idx)
elseif is_parameter(sys, sym)
return let fn = getp(sys, sym)
getter(prob, args...) = fn(prob)
getter(prob) = fn(prob)
getter(prob, i) = fn(parameter_values_at_state_time(prob, i))

Check warning on line 99 in src/state_indexing.jl

View check run for this annotation

Codecov / codecov/patch

src/state_indexing.jl#L98-L99

Added lines #L98 - L99 were not covered by tests
getter
end
elseif is_independent_variable(sys, sym)
Expand Down

0 comments on commit d1cabe5

Please sign in to comment.