Skip to content

Commit 9154946

Browse files
authored
more pylint fixes
1 parent 5b91a95 commit 9154946

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

EInk_Autostereograms/code.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -281,20 +281,20 @@ def run_job(jobfile):
281281
if (x >= 22 and
282282
x < (image.width + panelwidth // 2)
283283
and y < image.height):
284-
if (
285-
(image[x - panelwidth // 2, y] != 0 and not inv
286-
) or (
287-
image[x - panelwidth // 2, y] == 0 and inv)
288-
):
289-
# offset = 4
290-
if job["imagegrayscale"] == 0:
291-
offset = job["imageheight"]
292-
else:
293-
offset = (
294-
image[x - panelwidth // 2, y]
295-
* job["grayscalecolors"]
296-
// 255
297-
)
284+
if (
285+
(image[x - panelwidth // 2, y] != 0 and not inv
286+
) or (
287+
image[x - panelwidth // 2, y] == 0 and inv)
288+
):
289+
# offset = 4
290+
if job["imagegrayscale"] == 0:
291+
offset = job["imageheight"]
292+
else:
293+
offset = (
294+
image[x - panelwidth // 2, y]
295+
* job["grayscalecolors"]
296+
// 255
297+
)
298298
if offset != 0:
299299
for x2 in range(x, display.width, panelwidth):
300300
tcanvas[x2] = tcanvas[x2 + offset]

0 commit comments

Comments
 (0)