Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix trailing whitespaces in difference_family.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCati committed Jan 22, 2023
1 parent 4ef8680 commit 29a6d86
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/sage/combinat/designs/difference_family.py
Original file line number Diff line number Diff line change
Expand Up @@ -1562,16 +1562,16 @@ def is_relative_difference_set(R, G, H, params, verbose=False):
"""
m, n, k, d = params
if G.order() != m * n:
if verbose:
if verbose:
print('Incorrect order of G:', G.order())
return False

if H.order() != n:
if verbose:
if verbose:
print('Incorect order of H:', H.order())

if len(R) != k:
if verbose:
if verbose:
print('Length of R not correct:', len(R))
return False

Expand All @@ -1585,7 +1585,7 @@ def is_relative_difference_set(R, G, H, params, verbose=False):
diff_set[idx] += 1
values = [diff_set[x] for x in diff_set]
if max(values) != d or min(values) != d:
if verbose:
if verbose:
print('There is a value in the difference set which is not repeated d times')
return False

Expand Down Expand Up @@ -1659,7 +1659,7 @@ def supplementary_difference_set(q, existence=False, check=True):
an odd prime power.
Note that the construction from [Spe1975]_ states that the resulting sets are `4-\{2v; v+1, v, v, v; 2v\}`
supplementary difference sets. However, the implementation of that construction returns
supplementary difference sets. However, the implementation of that construction returns
`4-\{2v; v, v+1, v, v; 2v\}` supplementary difference sets. This is not important, since the supplementary
difference sets are not ordered.
Expand Down Expand Up @@ -1843,7 +1843,7 @@ def get_fixed_relative_difference_set(rel_diff_set, as_elements=False):
sage: from sage.combinat.designs.difference_family import relative_difference_set_from_m_sequence, get_fixed_relative_difference_set
sage: s1 = relative_difference_set_from_m_sequence(5, 2)
sage: get_fixed_relative_difference_set(s1) #random
[2, 10, 19, 23, 0]
[2, 10, 19, 23, 0]
If ``as_elements`` is true, the reuslt will contain elements of the group::
Expand Down Expand Up @@ -1899,7 +1899,7 @@ def is_fixed_relative_difference_set(R, q):
- ``R`` -- the relative difference sets, as a list containing elements of the abelian group.
- ``q`` -- an integer.
- ``q`` -- an integer.
EXAMPLES::
Expand Down

0 comments on commit 29a6d86

Please sign in to comment.