Skip to content

Commit

Permalink
Fix input output handling
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Sep 12, 2023
1 parent ac88125 commit d6cc7bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ModelingToolkit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $(DocStringExtensions.README)
"""
module ModelingToolkit
using PrecompileTools, Reexport
@recompile_invalidations begin
@recompile_invalidations begin
using DocStringExtensions
using Compat
using AbstractTrees
Expand Down
3 changes: 1 addition & 2 deletions src/systems/diffeqs/odesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,8 @@ function build_explicit_observed_function(sys, ts;
push!(obsexprs, lhs rhs)
end

pars = parameters(sys)
if inputs !== nothing
pars = setdiff(pars, inputs) # Inputs have been converted to parameters by io_preprocessing, remove those from the parameter list
ps = setdiff(ps, inputs) # Inputs have been converted to parameters by io_preprocessing, remove those from the parameter list
end
if ps isa Tuple
ps = DestructuredArgs.(ps, inbounds = !checkbounds)
Expand Down

0 comments on commit d6cc7bf

Please sign in to comment.