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

Commit

Permalink
applied changes of 28605 to new code from 28625
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Oct 21, 2019
1 parent c51cdd9 commit dd21f9c
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -1538,7 +1538,7 @@ cdef class CombinatorialPolyhedron(SageObject):

# Copy ``f_vector``.
if dual:
if dim > 1 and f_vector[1] < self._n_facets:
if dim > 1 and f_vector[1] < self.n_facets():
# The input seemed to be wrong.
raise ValueError("not all facets are joins of vertices")

Expand All @@ -1548,8 +1548,8 @@ cdef class CombinatorialPolyhedron(SageObject):
tuple(smallInteger(f_vector[dim+1-i]) for i in range(dim+2))

else:
if not self._unbounded and dim > 1 \
and f_vector[1] < self._length_Vrepr - len(self.far_face_tuple):
if not self.unbounded() and dim > 1 \
and f_vector[1] < self.length_Vrepr() - len(self.far_face_tuple()):
# The input seemed to be wrong.
raise ValueError("not all vertices are intersections of facets")

Expand Down

0 comments on commit dd21f9c

Please sign in to comment.