Skip to content

Commit

Permalink
some details
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Mar 10, 2023
1 parent 0e3557b commit 7688b96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/combinat/skew_partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ def from_row_and_column_length(self, rowL, colL):
sage: S.from_row_and_column_length([1,2],[1,3])
Traceback (most recent call last):
...
ValueError: sum mismatch : [1, 2] and [1, 3]
ValueError: sum mismatch: [1, 2] and [1, 3]
sage: S.from_row_and_column_length([3,2,1,2],[2,3,1,1,1])
Traceback (most recent call last):
...
Expand All @@ -1565,11 +1565,11 @@ def from_row_and_column_length(self, rowL, colL):
TESTS::
sage: all(SkewPartitions().from_row_and_column_length(p.row_lengths(), p.column_lengths()) == p
....: for i in range(8) for p in SkewPartitions(i))
....: for i in range(7) for p in SkewPartitions(i))
True
"""
if sum(rowL) != sum(colL):
raise ValueError("sum mismatch : %s and %s" % (rowL, colL))
raise ValueError(f"sum mismatch: {rowL} and {colL}")
if not all(i > 0 for i in rowL) or not all(i > 0 for i in colL):
raise ValueError("row and column length must be positive")
if not rowL:
Expand Down

0 comments on commit 7688b96

Please sign in to comment.