We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
observed_equations_used_by
1 parent 3e33d96 commit 29ef316Copy full SHA for 29ef316
src/utils.jl
@@ -1076,7 +1076,8 @@ function observed_equations_used_by(sys::AbstractSystem, exprs;
1076
1077
obsidxs = BitSet()
1078
for sym in involved_vars
1079
- idx = findfirst(isequal(sym), obsvars)
+ arrsym = iscall(sym) && operation(sym) === getindex ? arguments(sym)[1] : nothing
1080
+ idx = findfirst(v -> isequal(v, sym) || isequal(v, arrsym), obsvars)
1081
idx === nothing && continue
1082
idx in obsidxs && continue
1083
parents = dfs_parents(graph, idx)
0 commit comments