@@ -414,7 +414,7 @@ cdef class FaceIterator_base(SageObject):
414
414
self .structure.visited_all[self .structure.dimension - 1 ].n_faces = 0
415
415
else :
416
416
self .structure.visited_all[self .structure.dimension - 1 ].n_faces = 1
417
- self .structure.face_status = FaceStatus.not_initialized
417
+ self .structure.face_status = FaceStatus.NOT_INITIALIZED
418
418
self .structure.new_faces[self .structure.dimension - 1 ].n_faces = self .coatoms.n_faces()
419
419
self .structure.current_dimension = self .structure.dimension - 1
420
420
self .structure.highest_dimension = self .structure.dimension - 1
@@ -460,7 +460,7 @@ cdef class FaceIterator_base(SageObject):
460
460
sage: next( it) . ambient_V_indices( ) == it. current( ) . ambient_V_indices( )
461
461
True
462
462
"""
463
- if unlikely(self .structure.face_status == FaceStatus.not_initialized ):
463
+ if unlikely(self .structure.face_status == FaceStatus.NOT_INITIALIZED ):
464
464
raise ValueError (" iterator not set to a face yet" )
465
465
return CombinatorialFace(self )
466
466
@@ -888,7 +888,7 @@ cdef class FaceIterator_base(SageObject):
888
888
sage: it. _meet_of_coatoms( 1, 2)
889
889
A -1-dimensional face of a Polyhedron in QQ^ 2
890
890
"""
891
- if unlikely(self .structure.face_status != FaceStatus.not_initialized ):
891
+ if unlikely(self .structure.face_status != FaceStatus.NOT_INITIALIZED ):
892
892
raise ValueError (" please reset the face iterator" )
893
893
if unlikely(self .structure.output_dimension != - 2 ):
894
894
raise ValueError (" face iterator must not have the output dimension specified" )
@@ -994,7 +994,7 @@ cdef class FaceIterator_base(SageObject):
994
994
...
995
995
IndexError: atoms out of range
996
996
"""
997
- if unlikely(self .structure.face_status != FaceStatus.not_initialized ):
997
+ if unlikely(self .structure.face_status != FaceStatus.NOT_INITIALIZED ):
998
998
raise ValueError (" please reset the face iterator" )
999
999
if unlikely(self .structure.output_dimension != - 2 ):
1000
1000
raise ValueError (" face iterator must not have the output dimension specified" )
@@ -1049,14 +1049,14 @@ cdef class FaceIterator_base(SageObject):
1049
1049
See :meth:`FaceIterator_base. ignore_subfaces` and
1050
1050
:meth:`FaceIterator_base. ignore_supfaces`.
1051
1051
"""
1052
- if unlikely(self .structure.face_status == FaceStatus.not_initialized ):
1052
+ if unlikely(self .structure.face_status == FaceStatus.NOT_INITIALIZED ):
1053
1053
raise ValueError (" iterator not set to a face yet" )
1054
- if unlikely(self .structure.face_status == FaceStatus.only_visit_subsets ):
1054
+ if unlikely(self .structure.face_status == FaceStatus.ONLY_VISIT_SUBSETS ):
1055
1055
# The iterator is consumed, if it was just set to visit only subsets
1056
1056
# next thing to ignore subsets.
1057
1057
self .structure.current_dimension = self .structure.dimension
1058
1058
return 0
1059
- if unlikely(self .structure.face_status == FaceStatus.ignore_subsets ):
1059
+ if unlikely(self .structure.face_status == FaceStatus.IGNORE_SUBSETS ):
1060
1060
# Nothing to do.
1061
1061
return 0
1062
1062
# The current face is added to ``visited_all``.
@@ -1065,7 +1065,7 @@ cdef class FaceIterator_base(SageObject):
1065
1065
# as there are no new faces.
1066
1066
1067
1067
add_face_shallow(self .structure.visited_all[self .structure.current_dimension], self .structure.face)
1068
- self .structure.face_status = FaceStatus.ignore_subsets
1068
+ self .structure.face_status = FaceStatus.IGNORE_SUBSETS
1069
1069
1070
1070
def only_subfaces (self ):
1071
1071
r """
@@ -1177,9 +1177,9 @@ cdef class FaceIterator_base(SageObject):
1177
1177
See :meth:`FaceIterator_base. only_subfaces` and
1178
1178
:meth:`FaceIterator_base. only_supfaces`.
1179
1179
"""
1180
- if unlikely(self .structure.face_status == FaceStatus.not_initialized ):
1180
+ if unlikely(self .structure.face_status == FaceStatus.NOT_INITIALIZED ):
1181
1181
raise ValueError (" iterator not set to a face yet" )
1182
- if unlikely(self .structure.face_status == FaceStatus.ignore_subsets ):
1182
+ if unlikely(self .structure.face_status == FaceStatus.IGNORE_SUBSETS ):
1183
1183
raise ValueError (" cannot only visit subsets after ignoring a face" )
1184
1184
1185
1185
cdef face_list_t* faces = & self .structure.new_faces[self .structure.current_dimension]
@@ -1191,7 +1191,7 @@ cdef class FaceIterator_base(SageObject):
1191
1191
1192
1192
swap_faces(faces[0 ].faces[yet_to_visit], faces[0 ].faces[faces[0 ].n_faces - 1 ])
1193
1193
1194
- self .structure.face_status = FaceStatus.only_visit_subsets
1194
+ self .structure.face_status = FaceStatus.ONLY_VISIT_SUBSETS
1195
1195
self .structure.yet_to_visit = 0
1196
1196
# This will work:
1197
1197
# ``next_dimension`` will first call ``next_face_loop`` and then check
@@ -1281,13 +1281,13 @@ cdef class FaceIterator_base(SageObject):
1281
1281
if n_atoms == self .coatoms.n_atoms():
1282
1282
# The face is the universe.
1283
1283
self .structure.face[0 ] = face[0 ]
1284
- self .structure.face_status = FaceStatus.initialized
1284
+ self .structure.face_status = FaceStatus.INITIALIZED
1285
1285
self .structure.current_dimension = self .structure.dimension
1286
1286
return 0
1287
1287
elif n_atoms == 0 :
1288
1288
# The face is the empty face.
1289
1289
self .structure.face[0 ] = face[0 ]
1290
- self .structure.face_status = FaceStatus.initialized
1290
+ self .structure.face_status = FaceStatus.INITIALIZED
1291
1291
self .structure.current_dimension = - 1
1292
1292
return 0
1293
1293
@@ -1928,7 +1928,7 @@ cdef inline int next_dimension(iter_t structure, size_t parallelization_depth=0)
1928
1928
e. g. if it is ``1`` it will stop after having yield all faces of a facet
1929
1929
"""
1930
1930
cdef int max_dim = structure.highest_dimension - parallelization_depth
1931
- structure.face_status = FaceStatus.not_initialized
1931
+ structure.face_status = FaceStatus.NOT_INITIALIZED
1932
1932
while (not next_face_loop(structure)) and (structure.current_dimension <= max_dim):
1933
1933
sig_check()
1934
1934
structure._index += 1
@@ -1959,7 +1959,7 @@ cdef inline int next_face_loop(iter_t structure) nogil except -1:
1959
1959
# Set ``face`` to the next face.
1960
1960
structure.yet_to_visit -= 1
1961
1961
structure.face[0 ] = faces[0 ].faces[structure.yet_to_visit][0 ]
1962
- structure.face_status = FaceStatus.initialized
1962
+ structure.face_status = FaceStatus.INITIALIZED
1963
1963
return 1
1964
1964
1965
1965
if structure.current_dimension <= structure.lowest_dimension:
0 commit comments