Skip to content

Commit 2b62c48

Browse files
committed
wip fix one issue
1 parent 7a62c96 commit 2b62c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/geometry/lattice_polytope.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3220,7 +3220,7 @@ def index_of_max(iterable):
32203220
for k in range(1, n_f):
32213221
# Error for k == 1 already!
32223222
permutations_inv[n_s] = [S_f.one(), S_v.one()]
3223-
m = index_of_max(PM[k, tuple(permutations_inv[n_s][1](j+1) - 1 for j in range(n_v))])
3223+
m = index_of_max(tuple(PM[k, permutations_inv[n_s][1](j+1) - 1] for j in range(n_v)))
32243224
if m > 0:
32253225
permutations_inv[n_s][1] = permutations_inv[n_s][1] * PGE(S_v, 1, m+1)
32263226
d = (PM[k, permutations_inv[n_s][1](1) - 1]
@@ -3231,7 +3231,7 @@ def index_of_max(iterable):
32313231
continue
32323232
# otherwise:
32333233
for i in range(1, n_v):
3234-
m = index_of_max(PM[k, tuple(permutations_inv[n_s][1](j+1) - 1 for j in range(i,n_v))])
3234+
m = index_of_max(tuple(PM[k, permutations_inv[n_s][1](j+1) - 1] for j in range(i,n_v)))
32353235
if m > 0:
32363236
permutations_inv[n_s][1] = permutations_inv[n_s][1] \
32373237
* PGE(S_v, i + 1, m + i + 1)

0 commit comments

Comments
 (0)