Commit 26c16f7d authored by Nathan/Eilisha Shiraini's avatar Nathan/Eilisha Shiraini
Browse files

Another linting pass

parent 18c09c40
from .encoder import Encoder
\ No newline at end of file
from . import encoder
......@@ -37,10 +37,10 @@ def positionList(layers, compact):
size = matrixSize(layers, compact)
matrix = positionMatrix(layers, compact)
lst = [(-1, -1)] * (size * size)
for x, row in enumerate(matrix):
for y, cell in enumerate(row):
for i, row in enumerate(matrix):
for j, cell in enumerate(row):
if cell != -1:
lst[cell] = (x, y)
lst[cell] = (i, j)
del lst[lst.index((-1, -1)):]
return lst
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment