Skip to content

Commit 8ee19f2

Browse files
author
Matthias Koeppe
committed
sage -fixdoctests src/sage/combinat
1 parent e6ac103 commit 8ee19f2

15 files changed

+338
-355
lines changed

src/sage/combinat/binary_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4262,7 +4262,7 @@ def random_element(self):
42624262
42634263
EXAMPLES::
42644264
4265-
sage: BinaryTrees(5).random_element() # random # needs sage.combinat
4265+
sage: BinaryTrees(5).random_element() # random # needs sage.combinat
42664266
[., [., [., [., [., .]]]]]
42674267
sage: BinaryTrees(0).random_element() # needs sage.combinat
42684268
.

src/sage/combinat/designs/difference_family.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1749,7 +1749,7 @@ def supplementary_difference_set_from_rel_diff_set(q, existence=False, check=Tru
17491749
EXAMPLES::
17501750
17511751
sage: from sage.combinat.designs.difference_family import supplementary_difference_set_from_rel_diff_set
1752-
sage: supplementary_difference_set_from_rel_diff_set(17) #random # needs sage.libs.pari
1752+
sage: supplementary_difference_set_from_rel_diff_set(17) #random # needs sage.libs.pari
17531753
(Additive abelian group isomorphic to Z/16,
17541754
[[(1), (5), (6), (7), (9), (13), (14), (15)],
17551755
[(0), (2), (3), (5), (6), (10), (11), (13), (14)],

src/sage/combinat/designs/latin_squares.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ def mutually_orthogonal_latin_squares(k, n, partitions=False, check=True):
291291
292292
sage: designs.orthogonal_arrays.is_available(5+2, 5) # 5 MOLS of order 5
293293
False
294-
sage: designs.orthogonal_arrays.is_available(4+2,6) # 4 MOLS of order 6 # needs sage.schemes
294+
sage: designs.orthogonal_arrays.is_available(4+2,6) # 4 MOLS of order 6 # needs sage.schemes
295295
False
296296
297297
Sage, however, is not able to prove that the second MOLS do not exist::
298298
299-
sage: designs.orthogonal_arrays.exists(4+2,6) # 4 MOLS of order 6 # needs sage.schemes
299+
sage: designs.orthogonal_arrays.exists(4+2,6) # 4 MOLS of order 6 # needs sage.schemes
300300
Unknown
301301
302302
If you ask for such a MOLS then you will respectively get an informative

src/sage/combinat/free_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ def get_order(self):
937937
EXAMPLES::
938938
939939
sage: QS2 = SymmetricGroupAlgebra(QQ,2) # needs sage.combinat
940-
sage: QS2.get_order() # note: order changed on 2009-03-13 # needs sage.combinat
940+
sage: QS2.get_order() # note: order changed on 2009-03-13 # needs sage.combinat
941941
[[2, 1], [1, 2]]
942942
"""
943943
if self._order is None:

src/sage/combinat/multiset_partition_into_sets_ordered.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3394,7 +3394,7 @@ def val(self, q='q'):
33943394
33953395
Verifying Example 4.5 from [BCHOPSY2017]_::
33963396
3397-
sage: B = crystals.Minimaj(3, 4, 2) # for `Val_{4,1}^{(3)}` # needs sage.modules
3397+
sage: B = crystals.Minimaj(3, 4, 2) # for `Val_{4,1}^{(3)}` # needs sage.modules
33983398
sage: B.val() # needs sage.modules
33993399
(q^2+q+1)*s[2, 1, 1] + q*s[2, 2]
34003400
"""

src/sage/combinat/partition.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5549,9 +5549,9 @@ def simple_module_dimension(self, base_ring=None):
55495549
55505550
sage: Partition([2,2,1]).simple_module_dimension()
55515551
5
5552-
sage: Partition([2,2,1]).specht_module_dimension(GF(3)) # optional - sage.rings.finite_rings
5552+
sage: Partition([2,2,1]).specht_module_dimension(GF(3)) # needs sage.rings.finite_rings
55535553
5
5554-
sage: Partition([2,2,1]).simple_module_dimension(GF(3)) # optional - sage.rings.finite_rings
5554+
sage: Partition([2,2,1]).simple_module_dimension(GF(3)) # needs sage.rings.finite_rings
55555555
4
55565556
55575557
sage: for la in Partitions(6, regular=3):
@@ -6736,9 +6736,9 @@ def random_element(self, measure='uniform'):
67366736
67376737
EXAMPLES::
67386738
6739-
sage: Partitions(5).random_element() # random # needs sage.libs.flint
6739+
sage: Partitions(5).random_element() # random # needs sage.libs.flint
67406740
[2, 1, 1, 1]
6741-
sage: Partitions(5).random_element(measure='Plancherel') # random # needs sage.libs.flint
6741+
sage: Partitions(5).random_element(measure='Plancherel') # random # needs sage.libs.flint
67426742
[2, 1, 1, 1]
67436743
"""
67446744
if measure == 'uniform':
@@ -6756,7 +6756,7 @@ def random_element_uniform(self):
67566756
67576757
sage: Partitions(5).random_element_uniform() # random # needs sage.libs.flint
67586758
[2, 1, 1, 1]
6759-
sage: Partitions(20).random_element_uniform() # random # needs sage.libs.flint
6759+
sage: Partitions(20).random_element_uniform() # random # needs sage.libs.flint
67606760
[9, 3, 3, 2, 2, 1]
67616761
67626762
TESTS::

src/sage/combinat/plane_partition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ def __init__(self, box_size):
15481548
EXAMPLES::
15491549
15501550
sage: PP = PlanePartitions([4,3,2])
1551-
sage: TestSuite(PP).run() # long time, needs sage.modules
1551+
sage: TestSuite(PP).run() # long time # needs sage.modules
15521552
"""
15531553
super().__init__(box_size, category=FiniteEnumeratedSets())
15541554

src/sage/combinat/root_system/cartan_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def reflection_group(self, type="matrix"):
452452
EXAMPLES::
453453
454454
sage: C = CartanMatrix(['A',3]) # needs sage.graphs
455-
sage: C.reflection_group() # needs sage.libs.gap sage.graphs
455+
sage: C.reflection_group() # needs sage.graphs sage.libs.gap
456456
Weyl Group of type ['A', 3] (as a matrix group acting on the root space)
457457
"""
458458
RS = self.root_space()

0 commit comments

Comments
 (0)