Skip to content

Commit aad96d4

Browse files
committed
don't reuse variable
1 parent d6abaed commit aad96d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_guzman_neilan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ def test_bubble_in_space(cell):
4141
for j in range(N + 1 - i)
4242
for k in range(N + 1 - i - j)
4343
]
44-
lamb = [min(x[0], x[1], x[2], 1 - x[0] - x[1] - x[2]) for x in points]
44+
lamb = [min(p[0], p[1], p[2], 1 - p[0] - p[1] - p[2]) for p in points]
4545
elif cell == "triangle":
4646
points = [
4747
(sympy.Rational(i, N), sympy.Rational(j, N))
4848
for i in range(N + 1)
4949
for j in range(N + 1 - i)
5050
]
51-
lamb = [min(x[0], x[1], 1 - x[0] - x[1]) for x in points]
51+
lamb = [min(p[0], p[1], 1 - p[0] - p[1]) for p in points]
5252
else:
5353
raise ValueError(f"Unsupported cell: {cell}")
5454

0 commit comments

Comments
 (0)