Skip to content

Commit 6da1cf2

Browse files
fixup! refactor: don't splat MTKParameters into observed functions anymore
1 parent b36b8b4 commit 6da1cf2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/input_output_handling.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ if VERSION >= v"1.8" # :opaque_closure not supported before
144144
drop_expr = identity)
145145
x = randn(size(A, 1))
146146
u = randn(size(B, 2))
147-
p = getindex.(
147+
p = (getindex.(
148148
Ref(ModelingToolkit.defaults_and_guesses(ssys)),
149-
parameters(ssys))
149+
parameters(ssys)),)
150150
y1 = obsf(x, u, p, 0)
151151
y2 = C * x + D * u
152152
@test y1[] y2[]

test/reduction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ prob1 = ODEProblem(reduced_system, u0, (0.0, 100.0), pp)
119119
solve(prob1, Rodas5())
120120

121121
prob2 = SteadyStateProblem(reduced_system, u0, pp)
122-
@test prob2.f.observed(lorenz2.u, prob2.u0, pp) === 1.0
122+
@test prob2.f.observed(lorenz2.u, prob2.u0, prob2.p) === 1.0
123123

124124
# issue #724 and #716
125125
let

0 commit comments

Comments
 (0)