Skip to content

Commit 988caca

Browse files
Merge pull request #2816 from SciML/b/change-arguments
Refactor: Migrate from deprecated `unsorted_arguments` to `arguments`
2 parents 4e84df3 + 560b5ff commit 988caca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ SparseArrays = "1"
108108
SpecialFunctions = "0.7, 0.8, 0.9, 0.10, 1.0, 2"
109109
StaticArrays = "0.10, 0.11, 0.12, 1.0"
110110
SymbolicIndexingInterface = "0.3.12"
111-
SymbolicUtils = "2"
111+
SymbolicUtils = "2.1"
112112
Symbolics = "5.30.1"
113113
URIs = "1"
114114
UnPack = "0.1, 1.0"

src/systems/connectors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function collect_instream!(set, expr, occurs = false)
8585
iscall(expr) || return occurs
8686
op = operation(expr)
8787
op === instream && (push!(set, expr); occurs = true)
88-
for a in SymbolicUtils.unsorted_arguments(expr)
88+
for a in SymbolicUtils.arguments(expr)
8989
occurs |= collect_instream!(set, a, occurs)
9090
end
9191
return occurs

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ function _check_operator_variables(eq, op::T, expr = eq.rhs) where {T}
281281
throw_invalid_operator(expr, eq, op)
282282
end
283283
foreach(expr -> _check_operator_variables(eq, op, expr),
284-
SymbolicUtils.unsorted_arguments(expr))
284+
SymbolicUtils.arguments(expr))
285285
end
286286
"""
287287
Check if all the LHS are unique

0 commit comments

Comments
 (0)