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
5
5
Return all variables that mare marked as inputs. See also [`unbound_inputs`](@ref)
6
6
See also [`bound_inputs`](@ref), [`unbound_inputs`](@ref)
7
7
"""
8
- inputs (sys) = [ filter (isinput, unknowns (sys)); filter (isinput, parameters (sys))]
8
+ inputs (sys) = collect ( get_inputs (sys))
9
9
10
10
"""
11
11
outputs(sys)
@@ -14,13 +14,7 @@ Return all variables that mare marked as outputs. See also [`unbound_outputs`](@
14
14
See also [`bound_outputs`](@ref), [`unbound_outputs`](@ref)
15
15
"""
16
16
function 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))
24
18
end
25
19
26
20
"""
You can’t perform that action at this time.
0 commit comments