Skip to content

Commit 5aa6704

Browse files
committed
Fix tests
1 parent 9f11d8b commit 5aa6704

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/inputoutput.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function generate_control_function(
210210
inputs = map(x->time_varying_as_func(value(x), sys), ctrls)
211211

212212
eqs = [eq for eq in equations(sys) if !isdifferenceeq(eq)]
213-
foreach(check_derivative_variables, eqs)
213+
check_operator_variables(eqs, Differential)
214214
# substitute x(t) by just x
215215
rhss = implicit_dae ? [_iszero(eq.lhs) ? eq.rhs : eq.rhs - eq.lhs for eq in eqs] :
216216
[eq.rhs for eq in eqs]
@@ -244,5 +244,5 @@ function toparam(sys, ctrls::AbstractVector)
244244
eqs = map(eqs) do eq
245245
substitute(eq.lhs, subs) ~ substitute(eq.rhs, subs)
246246
end
247-
ODESystem(eqs, name=sys.name)
248-
end
247+
ODESystem(eqs, name=nameof(sys))
248+
end

0 commit comments

Comments
 (0)