Skip to content

Commit b960eae

Browse files
fix parsing
1 parent 68bf0d0 commit b960eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/SciMLBaseZygoteExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ end
3131
@adjoint function getindex(VA::ODESolution, sym, j::Int)
3232
function ODESolution_getindex_pullback(Δ)
3333
i = issymbollike(sym) ? sym_to_index(sym, VA) : sym
34-
du, dprob = if i ==== nothing
34+
du, dprob = if i === nothing
3535
getter = getobserved(VA)
3636
grz = pullback(getter, sym, VA.u[j], VA.prob.p, VA.t[j])[2](Δ)
3737
du = [k == j ? grz[2] : zero(VA.u[1]) for k in 1:length(VA.u)]
@@ -90,7 +90,7 @@ end
9090
@adjoint function getindex(VA::ODESolution, sym)
9191
function ODESolution_getindex_pullback(Δ)
9292
i = issymbollike(sym) ? sym_to_index(sym, VA) : sym
93-
if i ==== nothing
93+
if i === nothing
9494
throw(error("Zygote AD of purely-symbolic slicing for observed quantities is not yet supported. Work around this by using `A[sym,i]` to access each element sequentially in the function being differentiated."))
9595
else
9696
Δ′ = [[i == k ? Δ[j] : zero(x[1]) for k in 1:length(x)]

0 commit comments

Comments
 (0)