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.
1 parent 22dee50 commit 397a8d5Copy full SHA for 397a8d5
src/utils.jl
@@ -32,7 +32,8 @@ end
32
33
function modelingtoolkitize_expr(ex::Symbol,vars,curmod)
34
names = tosymbol.(vars)
35
- op = ex ∈ names ? vars[findfirst(x->(ex == tosymbol(x)),vars)] : getproperty(curmod,ex) # HACK
+ idx = findfirst(x->ex == x, names)
36
+ op = idx !== nothing ? vars[idx] : getproperty(curmod,ex)
37
op
38
end
39
0 commit comments