Skip to content

Commit

Permalink
Merge pull request #3 from Aaron-Dwyer/covering_array
Browse files Browse the repository at this point in the history
Added the covering array file to documentation, fixed a couple format…
  • Loading branch information
aadwyer authored Mar 4, 2023
2 parents b1488d5 + 36adf07 commit 98aeac9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/doc/en/reference/combinat/module_list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Comprehensive Module List
sage/combinat/designs/resolvable_bibd
sage/combinat/designs/group_divisible_designs
sage/combinat/designs/block_design
sage/combinat/designs/covering_array
sage/combinat/designs/covering_design
sage/combinat/designs/database
sage/combinat/designs/design_catalog
Expand Down
9 changes: 2 additions & 7 deletions src/sage/combinat/designs/covering_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(self, Array, SymbolSet=None):
r"""
Constructor function
EXAMPLES::
EXAMPLES::
sage: from sage.combinat.designs.covering_array import CoveringArray
sage: C = (('a','a','a','b'),\
Expand Down Expand Up @@ -154,8 +154,7 @@ def __init__(self, Array, SymbolSet=None):
(1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 0))
sage: CoveringArray(C)
A 7 by 15 Covering Array with entries from [0, 1]
"""
"""
#From the array input, grab the dimensions of the array
N=len(Array)
self.__n=N
Expand Down Expand Up @@ -341,8 +340,6 @@ def strength(self):
sage: CA = CoveringArray(C,GF(2))
sage: CA.strength()
2
sage: C2 = ((1, 0, 0, 2, 0, 2, 1, 2, 2, 1, 0, 2, 2),\
(1, 1, 0, 0, 2, 0, 2, 1, 2, 2, 1, 0, 2),\
(1, 1, 1, 0, 0, 2, 0, 2, 1, 2, 2, 1, 0),\
Expand Down Expand Up @@ -447,7 +444,6 @@ def array_representation(self):
sage: CA = CoveringArray(C,GF(2))
sage: CA.array_representation()
((0, 0, 0, 0), (0, 1, 1, 1), (1, 0, 1, 1), (1, 1, 0, 1), (1, 1, 1, 0))
"""
return self.__array

Expand Down Expand Up @@ -501,7 +497,6 @@ def __repr__(self):
(1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0, 0))
sage: CoveringArray(C)
A 7 by 15 Covering Array with entries from [0, 1]
"""
return 'A {} by {} Covering Array with entries from {}'.format(
self.numrows(), self.numcols(), self.symbolset())
Expand Down

0 comments on commit 98aeac9

Please sign in to comment.