Skip to content

Commit

Permalink
fix projection of 2D result with vars=(2,1)
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Feb 19, 2023
1 parent 48d02dd commit efc7799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Flowpipes/recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function _project_reachset(::Type{<:AbstractPolyhedron}, R, vars)
# if the set is polyhedral and two-dimensional
# - if time is not required -> don't project
# - otherwise, make the projection (lazily)
if (dim(R) == 2) && (0 vars)
if (dim(R) == 2) && vars[1] == 1 && vars[2] == 2
πR = set(R) # no-op
else
πR = Projection(R, vars) |> set # lazy projection
Expand Down

0 comments on commit efc7799

Please sign in to comment.