Skip to content

Commit d6cc7bf

Browse files
committed
Fix input output handling
1 parent ac88125 commit d6cc7bf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/ModelingToolkit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $(DocStringExtensions.README)
33
"""
44
module ModelingToolkit
55
using PrecompileTools, Reexport
6-
@recompile_invalidations begin
6+
@recompile_invalidations begin
77
using DocStringExtensions
88
using Compat
99
using AbstractTrees

src/systems/diffeqs/odesystem.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,8 @@ function build_explicit_observed_function(sys, ts;
386386
push!(obsexprs, lhs rhs)
387387
end
388388

389-
pars = parameters(sys)
390389
if inputs !== nothing
391-
pars = setdiff(pars, inputs) # Inputs have been converted to parameters by io_preprocessing, remove those from the parameter list
390+
ps = setdiff(ps, inputs) # Inputs have been converted to parameters by io_preprocessing, remove those from the parameter list
392391
end
393392
if ps isa Tuple
394393
ps = DestructuredArgs.(ps, inbounds = !checkbounds)

0 commit comments

Comments
 (0)