Skip to content

Commit

Permalink
Merge pull request #3596 from JuliaReach/schillic/namespace
Browse files Browse the repository at this point in the history
Fix namespace warnings in linter
  • Loading branch information
schillic authored Jul 19, 2024
2 parents 09058ff + 6c0a315 commit 224764e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ConcreteOperations/convex_hull.jl
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function _convex_hull_nd!(points::Vector{VN};
backend=nothing,
solver=nothing) where {N,VN<:AbstractVector{N}}
V = VPolytope(points)
Vch = remove_redundant_vertices(V; backend=backend, solver=solver)
Vch = VPolytopeModule.remove_redundant_vertices(V; backend=backend, solver=solver)
m = length(Vch.vertices)
points[1:m] = Vch.vertices
return resize!(points, m)
Expand Down
2 changes: 1 addition & 1 deletion src/MatrixSets/MatrixZonotope.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ See Prop. 1 in [1].
[1] Luo, Ertai, Niklas Kochdumper, and Stanley Bak. "Reachability analysis for linear systems with uncertain parameters using polynomial zonotopes." Proceedings of the 26th ACM International Conference on Hybrid Systems: Computation and Control. 2023.
"""=#
function linear_map(MZ::MatrixZonotope, P::SimpleSparsePolynomialZonotope)
function LazySets.linear_map(MZ::MatrixZonotope, P::SimpleSparsePolynomialZonotope)
A0 = MZ.A0
Ai = MZ.Ai
@assert size(A0, 2) == dim(P)
Expand Down
3 changes: 2 additions & 1 deletion src/Sets/HPolygon/HPolygonModule.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module HPolygonModule
using Reexport

using ..LazySets: AbstractHPolygon, BINARY_SEARCH_THRESHOLD, addconstraint!,
binary_search_constraints, element, , _intersection_line2d
binary_search_constraints, constraints_list, element,
isbounded, , _intersection_line2d
using ..LazySets.HalfSpaceModule: HalfSpace, _normal_Vector

@reexport import ..API: isoperationtype, σ, translate
Expand Down
4 changes: 2 additions & 2 deletions src/Sets/VPolygon/VPolygonModule.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ module VPolygonModule

using Reexport, Requires

using ..LazySets: AbstractPolygon, AbstractHPolygon, HPolygon, halfspace_left,
is_right_turn, _area_vlist, _linear_map_vrep
using ..LazySets: AbstractPolygon, AbstractHPolygon, HPolygon, convex_hull,
halfspace_left, is_right_turn, _area_vlist, _linear_map_vrep
using Random: AbstractRNG, GLOBAL_RNG, shuffle
using ReachabilityBase.Arrays: isabove, rand_pos_neg_zerosum_vector
using ReachabilityBase.Distribution: reseed!
Expand Down
2 changes: 1 addition & 1 deletion src/convert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ for T in subtypes(AbstractHPolygon, true)
A polygon in constraint representation.
"""
function convert(T::Type{$T}, P::VPolygon)
return tohrep(P, T)
return VPolygonModule.tohrep(P, T)
end

"""
Expand Down

0 comments on commit 224764e

Please sign in to comment.