Skip to content

Commit

Permalink
Merge pull request #3637 from JuliaReach/schillic/setprog
Browse files Browse the repository at this point in the history
Adapt to Symbolics v6.1; allow SetProg v0.4 in tests
  • Loading branch information
schillic authored Aug 17, 2024
2 parents f7f3399 + 65eb3ed commit 4e0ba3c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ Plots = "1"
Polyhedra = "0.7"
RecipesBase = "1"
StaticArrays = "1"
Symbolics = "5"
Symbolics = "6.1"
SymEngine = "0.7 - 0.12"
TaylorModels = "0.6 - 0.7"
2 changes: 1 addition & 1 deletion src/Initialization/init_Symbolics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ _vec(vars::Vector{Symbolics.Arr{Num,1}}) = reduce(vcat, vars)
_vec(vars::Vector{Vector{Num}}) = reduce(vcat, vars)
_vec(vars::Vector{Real}) = reduce(vcat, vars)

_get_variables(expr::Num) = convert(Vector{Num}, Symbolics.get_variables(expr))
_get_variables(expr::Num) = convert(Vector{Num}, Symbolics.get_variables(expr; sort=true))
function _get_variables(expr::Vector{<:Num})
return unique(reduce(vcat, _get_variables(ex) for ex in expr))
end
2 changes: 1 addition & 1 deletion src/Sets/HalfSpace/HalfSpace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function load_Symbolics_HalfSpace()
### Input
- `expr` -- symbolic expression that describes a half-space
- `vars` -- (optional, default: `get_variables(expr)`) if an array of variables
- `vars` -- (optional, default: `_get_variables(expr)`) if an array of variables
is given, use those as the ambient variables in the set with respect
to which derivations take place; otherwise, use only the variables
that appear in the given expression (but be careful because the
Expand Down
4 changes: 2 additions & 2 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ Polyhedra = "0.6 - 0.7"
RangeEnclosures = "0.1.1, 0.2"
RecipesBase = "0.6 - 0.8, 1"
SCS = "1, 2"
SetProg = "0.3"
SetProg = "0.3 - 0.4"
StaticArrays = "0.12, 1"
SymEngine = "0.7 - 0.12"
Symbolics = "1 - 5"
Symbolics = "1 - 5.30, 6.1"
TaylorModels = "0.0.1, 0.1 - 0.7"
WriteVTK = "1"

0 comments on commit 4e0ba3c

Please sign in to comment.