Skip to content

Commit

Permalink
Merge pull request #393 from JuliaReach/schillic/bugfix_variable_name
Browse files Browse the repository at this point in the history
Bugfix: wrong variable name
  • Loading branch information
schillic authored Jul 25, 2018
2 parents a353be1 + 43bb502 commit 908d920
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/VPolytope.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ The support vector in the given direction.
"""
function σ(d::AbstractVector{<:Real}, P::VPolytope; algorithm="hrep")::Vector{<:Real}
if algorithm == "hrep"
@assert isdefined(@__MODULE__, :Polyhedra) "you need to load Polyhedra for this algorithm"
@assert isdefined(@__MODULE__, :Polyhedra) "this algorithm needs the " *
"package 'Polyhedra' loaded"
return σ(d, tohrep(P))
else
error("the algorithm $(hrep) is not known")
error("the algorithm $algorithm is not known")
end
end

Expand Down

0 comments on commit 908d920

Please sign in to comment.