Skip to content

Commit

Permalink
Changed the elifs in truncate columns
Browse files Browse the repository at this point in the history
  • Loading branch information
aadwyer committed Aug 3, 2024
1 parent 3d0533d commit 0aa6f44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sage/combinat/designs/covering_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,10 @@ def truncate_columns(array, k):
if oldk == k:
return array

elif oldk < k:
if oldk < k:
raise ValueError("array only has {} columns".format(oldk))

else:
return [row[:k] for row in array]
return [row[:k] for row in array]


def Kleitman_Spencer_Katona(N):
Expand Down

0 comments on commit 0aa6f44

Please sign in to comment.