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 b338667 commit ceb6d78Copy full SHA for ceb6d78
src/symbolic/DAEquations/SymbolicTransform.jl
@@ -806,10 +806,14 @@ function differentiate(e)
806
if arg_der != zero
807
# op does not contain full path to function in Julia 1.3, use typeof()
808
typeofop = string(typeof(op))
809
- # remove typeof(...)
810
- typeofop = split(typeofop, "(")[2]
811
- typeofop = split(typeofop, ")")[1]
812
- path = split(typeofop, ".")
+ if typeofop != "Symbol"
+ # remove typeof(...)
+ typeofop = split(typeofop, "(")[2]
+ typeofop = split(typeofop, ")")[1]
813
+ path = split(typeofop, ".")
814
+ else
815
+ path = split(string(op), ".")
816
+ end
817
if length(path) >= 2
818
mod = path[end-1]
819
else
0 commit comments