File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ using Symbolics: get_variables
55Return all variables that mare marked as inputs. See also [`unbound_inputs`](@ref)
66See also [`bound_inputs`](@ref), [`unbound_inputs`](@ref)
77"""
8- inputs (sys) = [ filter (isinput, unknowns (sys)); filter (isinput, parameters (sys))]
8+ inputs (sys) = collect ( get_inputs (sys))
99
1010"""
1111 outputs(sys)
@@ -14,13 +14,7 @@ Return all variables that mare marked as outputs. See also [`unbound_outputs`](@
1414See also [`bound_outputs`](@ref), [`unbound_outputs`](@ref)
1515"""
1616function outputs (sys)
17- o = observed (sys)
18- rhss = [eq. rhs for eq in o]
19- lhss = [eq. lhs for eq in o]
20- unique ([filter (isoutput, unknowns (sys))
21- filter (isoutput, parameters (sys))
22- filter (x -> iscall (x) && isoutput (x), rhss) # observed can return equations with complicated expressions, we are only looking for single Terms
23- filter (x -> iscall (x) && isoutput (x), lhss)])
17+ return collect (get_outputs (sys))
2418end
2519
2620"""
You can’t perform that action at this time.
0 commit comments