Skip to content

Commit 5f25fff

Browse files
author
Matthias Koeppe
committed
sage.geometry: Use yet more block tags
1 parent cd18f99 commit 5f25fff

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2903,18 +2903,18 @@ cdef class CombinatorialPolyhedron(SageObject):
29032903
sage: # needs sage.graphs sage.rings.number_field
29042904
sage: P = polytopes.regular_polygon(4).pyramid()
29052905
sage: C = CombinatorialPolyhedron(P)
2906-
sage: D = C.hasse_diagram(); D # needs sage.graphs
2906+
sage: D = C.hasse_diagram(); D
29072907
Digraph on 20 vertices
2908-
sage: D.average_degree() # needs sage.graphs
2908+
sage: D.average_degree()
29092909
21/5
2910-
sage: D.relabel(C.face_by_face_lattice_index) # needs sage.graphs
2911-
sage: dim_0_vert = D.vertices(sort=True)[1:6]; dim_0_vert # needs sage.graphs
2910+
sage: D.relabel(C.face_by_face_lattice_index)
2911+
sage: dim_0_vert = D.vertices(sort=True)[1:6]; dim_0_vert
29122912
[A 0-dimensional face of a 3-dimensional combinatorial polyhedron,
29132913
A 0-dimensional face of a 3-dimensional combinatorial polyhedron,
29142914
A 0-dimensional face of a 3-dimensional combinatorial polyhedron,
29152915
A 0-dimensional face of a 3-dimensional combinatorial polyhedron,
29162916
A 0-dimensional face of a 3-dimensional combinatorial polyhedron]
2917-
sage: sorted(D.out_degree(vertices=dim_0_vert)) # needs sage.graphs
2917+
sage: sorted(D.out_degree(vertices=dim_0_vert))
29182918
[3, 3, 3, 3, 4]
29192919
"""
29202920
if not self._face_lattice_incidences:
@@ -3000,13 +3000,13 @@ cdef class CombinatorialPolyhedron(SageObject):
30003000
sage: # needs sage.combinat
30013001
sage: P = polytopes.cube()
30023002
sage: C = CombinatorialPolyhedron(P)
3003-
sage: F = C.face_lattice() # needs sage.combinat
3004-
sage: F # needs sage.combinat
3003+
sage: F = C.face_lattice()
3004+
sage: F
30053005
Finite lattice containing 28 elements
3006-
sage: G = F.relabel(C.face_by_face_lattice_index) # needs sage.combinat
3007-
sage: G.level_sets()[0] # needs sage.combinat
3006+
sage: G = F.relabel(C.face_by_face_lattice_index)
3007+
sage: G.level_sets()[0]
30083008
[A -1-dimensional face of a 3-dimensional combinatorial polyhedron]
3009-
sage: G.level_sets()[3] # needs sage.combinat
3009+
sage: G.level_sets()[3]
30103010
[A 2-dimensional face of a 3-dimensional combinatorial polyhedron,
30113011
A 2-dimensional face of a 3-dimensional combinatorial polyhedron,
30123012
A 2-dimensional face of a 3-dimensional combinatorial polyhedron,

src/sage/geometry/polyhedron/combinatorial_polyhedron/conversions.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ Obtain the Vrepresentation of a polyhedron as facet-incidences stored in
3434
sage: # needs sage.combinat
3535
sage: from sage.geometry.polyhedron.combinatorial_polyhedron.conversions \
3636
....: import incidence_matrix_to_bit_rep_of_Vrep
37-
sage: P = polytopes.associahedron(['A',4]) # needs sage.combinat
37+
sage: P = polytopes.associahedron(['A',4])
3838
sage: face_list = incidence_matrix_to_bit_rep_of_Vrep(P.incidence_matrix())
39-
sage: face_list.compute_dimension() # needs sage.combinat
39+
sage: face_list.compute_dimension()
4040
4
4141
4242
Obtain the facets of a polyhedron as :class:`~sage.geometry.polyhedron.combinatorial_polyhedron.list_of_faces.ListOfFaces` from a facet list::

src/sage/geometry/triangulation/point_configuration.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@
112112
sage: PointConfiguration.set_engine('topcom')
113113
sage: p = PointConfiguration([[-1,-5/9], [0,10/9], [1,-5/9],
114114
....: [-2,-10/9], [0,20/9], [2,-10/9]])
115-
sage: p_regular = p.restrict_to_regular_triangulations(True) # optional - topcom
116-
sage: regular = p_regular.triangulations_list() # optional - topcom
117-
sage: p_nonregular = p.restrict_to_regular_triangulations(False) # optional - topcom
118-
sage: nonregular = p_nonregular.triangulations_list() # optional - topcom
119-
sage: len(regular) # optional - topcom
115+
sage: p_regular = p.restrict_to_regular_triangulations(True)
116+
sage: regular = p_regular.triangulations_list()
117+
sage: p_nonregular = p.restrict_to_regular_triangulations(False)
118+
sage: nonregular = p_nonregular.triangulations_list()
119+
sage: len(regular)
120120
16
121-
sage: len(nonregular) # optional - topcom
121+
sage: len(nonregular)
122122
2
123-
sage: nonregular[0].plot(aspect_ratio=1, axes=False) # optional - topcom, needs sage.plot
123+
sage: nonregular[0].plot(aspect_ratio=1, axes=False) # needs sage.plot
124124
Graphics object consisting of 25 graphics primitives
125125
sage: PointConfiguration.set_engine('internal') # to make doctests independent of TOPCOM
126126
@@ -382,7 +382,7 @@ def set_engine(cls, engine='auto'):
382382
sage: p.triangulate()
383383
(<1,3,4>, <2,3,4>)
384384
sage: p.set_engine('topcom')
385-
sage: p.triangulate() # optional - topcom
385+
sage: p.triangulate()
386386
(<0,1,2>, <0,1,4>, <0,2,4>, <1,2,3>)
387387
sage: p.set_engine('internal')
388388
"""
@@ -743,9 +743,9 @@ def _TOPCOM_triangulate(self, verbose=True):
743743
sage: # optional - topcom
744744
sage: p = PointConfiguration([[0,0], [0,1], [1,0], [1,1], [-1,-1]])
745745
sage: p.set_engine('topcom')
746-
sage: p._TOPCOM_triangulate(verbose=False) # optional - topcom
746+
sage: p._TOPCOM_triangulate(verbose=False)
747747
(<0,1,2>, <0,1,4>, <0,2,4>, <1,2,3>)
748-
sage: list( p.triangulate() ) # optional - topcom
748+
sage: list( p.triangulate() )
749749
[(0, 1, 2), (0, 1, 4), (0, 2, 4), (1, 2, 3)]
750750
sage: p.set_engine('internal')
751751
"""

src/sage/geometry/voronoi_diagram.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,14 @@ def plot(self, cell_colors=None, **kwds):
264264
sage: # needs sage.plot
265265
sage: P = [[0.671, 0.650], [0.258, 0.767], [0.562, 0.406],
266266
....: [0.254, 0.709], [0.493, 0.879]]
267-
sage: V = VoronoiDiagram(P); S=V.plot() # needs sage.plot
268-
sage: show(S, xmin=0, xmax=1, ymin=0, ymax=1, aspect_ratio=1, axes=false) # needs sage.plot
269-
sage: S = V.plot(cell_colors={0: 'red', 1: 'blue', 2: 'green', # needs sage.plot
267+
sage: V = VoronoiDiagram(P); S=V.plot()
268+
sage: show(S, xmin=0, xmax=1, ymin=0, ymax=1, aspect_ratio=1, axes=false)
269+
sage: S = V.plot(cell_colors={0: 'red', 1: 'blue', 2: 'green',
270270
....: 3: 'white', 4: 'yellow'})
271-
sage: show(S, xmin=0, xmax=1, ymin=0, ymax=1, aspect_ratio=1, axes=false) # needs sage.plot
272-
sage: S = V.plot(cell_colors=['red', 'blue', 'red', 'white', 'white']) # needs sage.plot
273-
sage: show(S, xmin=0, xmax=1, ymin=0, ymax=1, aspect_ratio=1, axes=false) # needs sage.plot
274-
sage: S = V.plot(cell_colors='something else') # needs sage.plot
271+
sage: show(S, xmin=0, xmax=1, ymin=0, ymax=1, aspect_ratio=1, axes=false)
272+
sage: S = V.plot(cell_colors=['red', 'blue', 'red', 'white', 'white'])
273+
sage: show(S, xmin=0, xmax=1, ymin=0, ymax=1, aspect_ratio=1, axes=false)
274+
sage: S = V.plot(cell_colors='something else')
275275
Traceback (most recent call last):
276276
...
277277
AssertionError: 'cell_colors' must be a list or a dictionary

0 commit comments

Comments
 (0)