Skip to content

Commit

Permalink
fixup! fixup! fix: improve hack supporting unscalarized usage of arra…
Browse files Browse the repository at this point in the history
…y observed variables
  • Loading branch information
AayushSabharwal committed Oct 18, 2024
1 parent aee61ab commit c52c2d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/structural_transformation/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ end
@variables x(t) y(t)[1:2] z(t)[1:2]
@parameters foo(::AbstractVector)[1:2]
_tmp_fn(x) = 2x
@mtkbuild sys = ODESystem([D(x) ~ z[1] + z[2] + foo(z)[1], y[1] ~ 2t, y[2] ~ 3t, z ~ foo(y)], t)
@mtkbuild sys = ODESystem(
[D(x) ~ z[1] + z[2] + foo(z)[1], y[1] ~ 2t, y[2] ~ 3t, z ~ foo(y)], t)
@test length(equations(sys)) == 1
@test length(observed(sys)) == 6
@test any(eq -> isequal(eq.lhs, y), observed(sys))
Expand Down

0 comments on commit c52c2d1

Please sign in to comment.