-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adapt to renamed kwarg in 'Polyhedra.removeredundancy' ('ztol' -> 'tol')
- Loading branch information
Showing
6 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
eval(load_Polyhedra_convert_HPolytope()) | ||
eval(load_Polyhedra_HPolytope()) | ||
|
||
# in v0.8.0, `Polyhedra` renamed the kwarg `ztol` to `tol` | ||
@static if hasmethod(Polyhedra.detecthlinearity, (Polyhedra.HRepresentation, Any), (:ztol,)) | ||
function _removeredundancy!(X; N) | ||
return removevredundancy!(X; ztol=_ztol(N)) | ||
end | ||
else | ||
@assert hasmethod(Polyhedra.detecthlinearity, (Polyhedra.HRepresentation, Any), (:tol,)) | ||
|
||
function _removeredundancy!(X; N) | ||
return removevredundancy!(X; tol=_ztol(N)) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
eval(load_Polyhedra_VPolytope()) | ||
eval(load_Polyhedra_polyhedron()) | ||
|
||
# in v0.8.0, `Polyhedra` renamed the kwarg `ztol` to `tol` | ||
@static if hasmethod(Polyhedra.detecthlinearity, (Polyhedra.HRepresentation, Any), (:ztol,)) | ||
function _removeredundancy!(X; N) | ||
return removevredundancy!(X; ztol=_ztol(N)) | ||
end | ||
else | ||
@assert hasmethod(Polyhedra.detecthlinearity, (Polyhedra.HRepresentation, Any), (:tol,)) | ||
|
||
function _removeredundancy!(X; N) | ||
return removevredundancy!(X; tol=_ztol(N)) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters