Skip to content

Commit aee61ab

Browse files
fixup! fix: improve hack supporting unscalarized usage of array observed variables
1 parent eb561a9 commit aee61ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/structural_transformation/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ end
4545
@variables x(t) y(t)[1:2] z(t)[1:2]
4646
@parameters foo(::AbstractVector)[1:2]
4747
_tmp_fn(x) = 2x
48-
@mtkbuild sys = ODESystem([D(x) ~ z[1] + z[2], y[1] ~ 2t, y[2] ~ 3t, z ~ foo(y)], t)
48+
@mtkbuild sys = ODESystem([D(x) ~ z[1] + z[2] + foo(z)[1], y[1] ~ 2t, y[2] ~ 3t, z ~ foo(y)], t)
4949
@test length(equations(sys)) == 1
5050
@test length(observed(sys)) == 6
5151
@test any(eq -> isequal(eq.lhs, y), observed(sys))

0 commit comments

Comments
 (0)