Skip to content

Commit 2c17819

Browse files
test: fix serialization test observed function expr
1 parent c162e00 commit 2c17819

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/serialization.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ for var in all_obs
5555
push!(obs_exps, ex)
5656
end
5757
# observedfun expression for ODEFunctionExpr
58-
observedfun_exp = :(function (var, u0, p, t)
58+
observedfun_exp = :(function obs(var, u0, p, t)
59+
if var isa AbstractArray
60+
return obs.(var, (u0,), (p,), (t,))
61+
end
5962
name = ModelingToolkit.getname(var)
6063
$(obs_exps...)
6164
end)

0 commit comments

Comments
 (0)