Skip to content

Commit 355bd11

Browse files
author
Matthias Koeppe
committed
./sage -fixdoctests --only-tags src/sage/combinat/designs/*.{py,pyx}
1 parent 8441e2c commit 355bd11

File tree

4 files changed

+23
-22
lines changed

4 files changed

+23
-22
lines changed

src/sage/combinat/designs/database.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,8 +1137,8 @@ def OA_16_208():
11371137
11381138
sage: from sage.combinat.designs.designs_pyx import is_orthogonal_array
11391139
sage: from sage.combinat.designs.database import OA_16_208
1140-
sage: OA = OA_16_208() # not tested # needs sage.rings.finite_rings
1141-
sage: is_orthogonal_array(OA,16,208,2) # not tested # needs sage.rings.finite_rings
1140+
sage: OA = OA_16_208() # not tested (too long) # needs sage.rings.finite_rings
1141+
sage: is_orthogonal_array(OA,16,208,2) # not tested (too long) # needs sage.rings.finite_rings
11421142
True
11431143
11441144
The design is available from the general constructor::
@@ -1196,8 +1196,8 @@ def OA_15_224():
11961196
11971197
sage: from sage.combinat.designs.designs_pyx import is_orthogonal_array
11981198
sage: from sage.combinat.designs.database import OA_15_224
1199-
sage: OA = OA_15_224() # not tested # needs sage.rings.finite_rings
1200-
sage: is_orthogonal_array(OA,15,224,2) # not tested # needs sage.rings.finite_rings
1199+
sage: OA = OA_15_224() # not tested (too long) # needs sage.rings.finite_rings
1200+
sage: is_orthogonal_array(OA,15,224,2) # not tested (too long) # needs sage.rings.finite_rings
12011201
True
12021202
12031203
The design is available from the general constructor::
@@ -1856,8 +1856,8 @@ def OA_15_896():
18561856
18571857
sage: from sage.combinat.designs.designs_pyx import is_orthogonal_array
18581858
sage: from sage.combinat.designs.database import OA_15_896
1859-
sage: OA = OA_15_896() # not tested # needs sage.rings.finite_rings
1860-
sage: is_orthogonal_array(OA,15,896,2) # not tested # needs sage.rings.finite_rings
1859+
sage: OA = OA_15_896() # not tested (too long, ~2min) # needs sage.rings.finite_rings
1860+
sage: is_orthogonal_array(OA,15,896,2) # not tested (too long) # needs sage.rings.finite_rings
18611861
True
18621862
18631863
The design is available from the general constructor::

src/sage/combinat/designs/designs_pyx.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def is_orthogonal_array(OA, int k, int n, int t=2, verbose=False, terminology="O
7979
8080
sage: from itertools import product
8181
sage: n = 0
82-
sage: for a in product(product((0,1), repeat=3), repeat=4):
82+
sage: for a in product(product((0,1), repeat=3), repeat=4): # needs sage.schemes
8383
....: if is_orthogonal_array(a,3,2):
8484
....: n += 1
8585
sage: n

src/sage/combinat/designs/difference_family.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1932,23 +1932,23 @@ def get_fixed_relative_difference_set(G, rel_diff_set, as_elements=False):
19321932
19331933
sage: from sage.combinat.designs.difference_family import relative_difference_set_from_m_sequence, get_fixed_relative_difference_set
19341934
sage: G, s1 = relative_difference_set_from_m_sequence(5, 2, return_group=True) # needs sage.libs.pari sage.modules
1935-
sage: get_fixed_relative_difference_set(G, s1) # random # needs sage.modules
1935+
sage: get_fixed_relative_difference_set(G, s1) # random # needs sage.libs.pari sage.modules
19361936
[2, 10, 19, 23, 0]
19371937
19381938
If ``as_elements=True``, the result will contain elements of the group::
19391939
1940-
sage: get_fixed_relative_difference_set(G, s1, as_elements=True) # random # needs sage.modules
1940+
sage: get_fixed_relative_difference_set(G, s1, as_elements=True) # random # needs sage.libs.pari sage.modules
19411941
[(2), (10), (19), (23), (0)]
19421942
19431943
TESTS::
19441944
1945-
sage: # needs sage.modules
1945+
sage: # needs sage.libs.pari sage.modules
19461946
sage: from sage.combinat.designs.difference_family import is_fixed_relative_difference_set
1947-
sage: G, s1 = relative_difference_set_from_m_sequence(5, 2, return_group=True) # needs sage.libs.pari
1947+
sage: G, s1 = relative_difference_set_from_m_sequence(5, 2, return_group=True)
19481948
sage: s2 = get_fixed_relative_difference_set(G, s1, as_elements=True)
19491949
sage: is_fixed_relative_difference_set(s2, len(s2))
19501950
True
1951-
sage: G, s1 = relative_difference_set_from_m_sequence(9, 2, return_group=True) # needs sage.libs.pari
1951+
sage: G, s1 = relative_difference_set_from_m_sequence(9, 2, return_group=True)
19521952
sage: s2 = get_fixed_relative_difference_set(G, s1, as_elements=True)
19531953
sage: is_fixed_relative_difference_set(s2, len(s2))
19541954
True
@@ -1998,8 +1998,8 @@ def is_fixed_relative_difference_set(R, q):
19981998
sage: # needs sage.modules
19991999
sage: from sage.combinat.designs.difference_family import relative_difference_set_from_m_sequence, get_fixed_relative_difference_set, is_fixed_relative_difference_set
20002000
sage: G, s1 = relative_difference_set_from_m_sequence(7, 2, return_group=True) # needs sage.libs.pari
2001-
sage: s2 = get_fixed_relative_difference_set(G, s1, as_elements=True)
2002-
sage: is_fixed_relative_difference_set(s2, len(s2))
2001+
sage: s2 = get_fixed_relative_difference_set(G, s1, as_elements=True) # needs sage.libs.pari
2002+
sage: is_fixed_relative_difference_set(s2, len(s2)) # needs sage.libs.pari
20032003
True
20042004
sage: G = AdditiveAbelianGroup([15])
20052005
sage: s3 = [G[1], G[2], G[3], G[4]]
@@ -2009,8 +2009,8 @@ def is_fixed_relative_difference_set(R, q):
20092009
If the relative difference set does not contain elements of the group, the method returns false::
20102010
20112011
sage: G, s1 = relative_difference_set_from_m_sequence(7, 2, return_group=True) # needs sage.libs.pari sage.modules
2012-
sage: s2 = get_fixed_relative_difference_set(G, s1, as_elements=False) # needs sage.modules
2013-
sage: is_fixed_relative_difference_set(s2, len(s2)) # needs sage.modules
2012+
sage: s2 = get_fixed_relative_difference_set(G, s1, as_elements=False) # needs sage.libs.pari sage.modules
2013+
sage: is_fixed_relative_difference_set(s2, len(s2)) # needs sage.libs.pari sage.modules
20142014
False
20152015
"""
20162016
for el in R:

src/sage/combinat/designs/latin_squares.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def are_mutually_orthogonal_latin_squares(l, verbose=False):
156156
False
157157
158158
sage: m = designs.mutually_orthogonal_latin_squares(7,8) # needs sage.schemes
159-
sage: are_mutually_orthogonal_latin_squares(m)
159+
sage: are_mutually_orthogonal_latin_squares(m) # needs sage.schemes
160160
True
161161
162162
TESTS:
@@ -432,7 +432,7 @@ def latin_square_product(M, N, *others):
432432
433433
sage: from sage.combinat.designs.latin_squares import latin_square_product
434434
sage: m=designs.mutually_orthogonal_latin_squares(3,4)[0] # needs sage.schemes
435-
sage: latin_square_product(m,m,m)
435+
sage: latin_square_product(m,m,m) # needs sage.schemes
436436
64 x 64 sparse matrix over Integer Ring (use the '.str()' method to see the entries)
437437
"""
438438
from sage.matrix.constructor import Matrix
@@ -476,32 +476,33 @@ def MOLS_table(start,stop=None,compare=False,width=None):
476476
477477
EXAMPLES::
478478
479+
sage: # needs sage.schemes
479480
sage: from sage.combinat.designs.latin_squares import MOLS_table
480-
sage: MOLS_table(100) # needs sage.schemes
481+
sage: MOLS_table(100)
481482
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
482483
________________________________________________________________________________
483484
0| +oo +oo 1 2 3 4 1 6 7 8 2 10 5 12 4 4 15 16 5 18
484485
20| 4 5 3 22 7 24 4 26 5 28 4 30 31 5 4 5 8 36 4 5
485486
40| 7 40 5 42 5 6 4 46 8 48 6 5 5 52 5 6 7 7 5 58
486487
60| 5 60 5 6 63 7 5 66 5 6 6 70 7 72 5 7 6 6 6 78
487488
80| 9 80 8 82 6 6 6 6 7 88 6 7 6 6 6 6 7 96 6 8
488-
sage: MOLS_table(100, width=4) # needs sage.schemes
489+
sage: MOLS_table(100, width=4)
489490
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
490491
____________________________________________________________________________________________________
491492
0| +oo +oo 1 2 3 4 1 6 7 8 2 10 5 12 4 4 15 16 5 18
492493
20| 4 5 3 22 7 24 4 26 5 28 4 30 31 5 4 5 8 36 4 5
493494
40| 7 40 5 42 5 6 4 46 8 48 6 5 5 52 5 6 7 7 5 58
494495
60| 5 60 5 6 63 7 5 66 5 6 6 70 7 72 5 7 6 6 6 78
495496
80| 9 80 8 82 6 6 6 6 7 88 6 7 6 6 6 6 7 96 6 8
496-
sage: MOLS_table(100, compare=True) # needs sage.schemes
497+
sage: MOLS_table(100, compare=True)
497498
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
498499
________________________________________________________________________________
499500
0| + +
500501
20|
501502
40|
502503
60| +
503504
80|
504-
sage: MOLS_table(50, 100, compare=True) # needs sage.schemes
505+
sage: MOLS_table(50, 100, compare=True)
505506
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
506507
________________________________________________________________________________
507508
40|

0 commit comments

Comments
 (0)