Skip to content

Commit 400bd42

Browse files
committed
two more details in tableaux
1 parent b95f344 commit 400bd42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/sage/combinat/ribbon_tableau.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,8 +854,8 @@ def weight(self):
854854
sage: a.weight()
855855
[5, 3, 1]
856856
"""
857-
weights = [x.weight() for x in self]
858-
m = max([len(x) for x in weights])
857+
weights = (x.weight() for x in self)
858+
m = max(len(x) for x in weights)
859859
weight = [0] * m
860860
for w in weights:
861861
for i in range(len(w)):

src/sage/combinat/tableau.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ def to_sign_matrix(self, max_entry=None):
12981298
raise ValueError("the entries must be nonnegative integers")
12991299
from sage.matrix.matrix_space import MatrixSpace
13001300
if max_entry is None:
1301-
max_entry = max([max(c) for c in self])
1301+
max_entry = max(max(c) for c in self)
13021302
MS = MatrixSpace(ZZ, len(self[0]), max_entry)
13031303
Tconj = self.conjugate()
13041304
conj_len = len(Tconj)

0 commit comments

Comments
 (0)