-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check convexity in line segment #3007
Conversation
@schillic (continuing from the previous comment) what is the ambiguity? |
You can open the log in the build. |
julia> Aqua.test_ambiguities(LazySets)
Skipping LazySets.Assertions.are_assertions_enabled
4 ambiguities found
Ambiguity #1
issubset(X::LazySets.ConvexSet, P::LazySets.ConvexSet, witness::Bool) in LazySets at /home/lferrant/.julia/dev/LazySets/src/ConcreteOperations/issubset.jl:71
issubset(L::LazySets.LineSegment{N, VN} where VN<:AbstractVector{N}, S::ST, witness::Bool) where {N, ST<:LazySets.LazySet{N}} in LazySets at /home/lferrant/.julia/dev/LazySets/src/ConcreteOperations/issubset.jl:492
Possible fix, define
issubset(::LazySets.LineSegment{N, VN} where VN<:AbstractVector{N}, ::ST, ::Bool) where {N, ST<:LazySets.ConvexSet{N}}
Ambiguity #2
issubset(P::LazySets.AbstractPolytope, S::LazySets.ConvexSet) in LazySets at /home/lferrant/.julia/dev/LazySets/src/ConcreteOperations/issubset.jl:213
issubset(L::LazySets.LineSegment{N, VN} where VN<:AbstractVector{N}, S::ST) where {N, ST<:LazySets.LazySet{N}} in LazySets at /home/lferrant/.julia/dev/LazySets/src/ConcreteOperations/issubset.jl:492
Possible fix, define
issubset(::LazySets.LineSegment{N, VN} where VN<:AbstractVector{N}, ::ST) where {N, ST<:LazySets.ConvexSet{N}}
Ambiguity #3
issubset(P::LazySets.AbstractPolytope, S::LazySets.ConvexSet, witness::Bool; algorithm) in LazySets at /home/lferrant/.julia/dev/LazySets/src/ConcreteOperations/issubset.jl:213
issubset(L::LazySets.LineSegment{N, VN} where VN<:AbstractVector{N}, S::ST, witness::Bool) where {N, ST<:LazySets.LazySet{N}} in LazySets at /home/lferrant/.julia/dev/LazySets/src/ConcreteOperations/issubset.jl:492
Possible fix, define
issubset(::LazySets.LineSegment{N, VN} where VN<:AbstractVector{N}, ::ST, ::Bool) where {N, ST<:LazySets.ConvexSet{N}}
Ambiguity #4
issubset(X::LazySets.ConvexSet, P::LazySets.ConvexSet) in LazySets at /home/lferrant/.julia/dev/LazySets/src/ConcreteOperations/issubset.jl:71
issubset(L::LazySets.LineSegment{N, VN} where VN<:AbstractVector{N}, S::ST) where {N, ST<:LazySets.LazySet{N}} in LazySets at /home/lferrant/.julia/dev/LazySets/src/ConcreteOperations/issubset.jl:492
Possible fix, define
issubset(::LazySets.LineSegment{N, VN} where VN<:AbstractVector{N}, ::ST) where {N, ST<:LazySets.ConvexSet{N}}
Test Failed at /home/lferrant/.julia/packages/Aqua/HWLbM/src/ambiguities.jl:117
Expression: success(pipeline(cmd; stdout = stdout, stderr = stderr))
ERROR: There was an error during testing |
a |
Co-authored-by: Christian Schilling <[email protected]>
Co-authored-by: Luca Ferranti <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(not sure if my review counts anymore given I also committed, but...) LGTM, a couple of things that could be added
- A
test_throw
for the fallback case (arguably quite pedantic) - A test for the case
witness=true
(falls out of the original scope of the PR, but since the change was incorporated)
i opened #3008 |
* check convexity in line segment * Update docs/src/lib/binary_functions.md * fix ambiguity * Update src/ConcreteOperations/issubset.jl Co-authored-by: Christian Schilling <[email protected]> * Update src/ConcreteOperations/issubset.jl Co-authored-by: Luca Ferranti <[email protected]> Co-authored-by: Christian Schilling <[email protected]> Co-authored-by: Luca Ferranti <[email protected]>
* change LazySet to ConvexSet * rename file LazySet.jl -> ConvexSet.jl * rename another LazySet.jl to ConvexSet.jl * add abstract LazySet type * update docs * update docstring * check convexity in line segment (#3007) * check convexity in line segment * Update docs/src/lib/binary_functions.md * fix ambiguity * Update src/ConcreteOperations/issubset.jl Co-authored-by: Christian Schilling <[email protected]> * Update src/ConcreteOperations/issubset.jl Co-authored-by: Luca Ferranti <[email protected]> Co-authored-by: Christian Schilling <[email protected]> Co-authored-by: Luca Ferranti <[email protected]> Co-authored-by: Marcelo Forets <[email protected]> Co-authored-by: Christian Schilling <[email protected]>
No description provided.