Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jplab committed Sep 12, 2019
1 parent 6457c02 commit 112c30f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/sage/geometry/polyhedron/base.py
Expand Up @@ -2281,7 +2281,7 @@ def boundary_complex(self):
sage: c.boundary_complex()
Traceback (most recent call last):
...
NotImplementedError: this function is implemented for simplicial polytopes only
NotImplementedError: this function is only implemented for simplicial polytopes
TESTS::
Expand All @@ -2292,15 +2292,15 @@ def boundary_complex(self):
ValueError: self should be compact
"""
from sage.homology.simplicial_complex import SimplicialComplex
try:
if self.is_simplicial():
facets = [f.ambient_V_indices() for f in self.facets()]
return SimplicialComplex(facets,maximality_check=False)
else:
raise NotImplementedError("this function is implemented for simplicial polytopes only")
except ValueError:
if not self.is_compact():
raise ValueError("self should be compact")

if self.is_simplicial():
facets = [f.ambient_V_indices() for f in self.facets()]
return SimplicialComplex(facets,maximality_check=False)
else:
raise NotImplementedError("this function is only implemented for simplicial polytopes")

@cached_method
def facet_adjacency_matrix(self):
"""
Expand Down

0 comments on commit 112c30f

Please sign in to comment.