Skip to content

Commit 3a6ab78

Browse files
committed
DM: my man pylint
1 parent 29de690 commit 3a6ab78

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/thermalcam.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@
3030
#initialize the sensor
3131
sensor = adafruit_amg88xx.AMG88XX(i2c_bus)
3232

33+
# pylint: disable=invalid-slice-index
3334
points = [(math.floor(ix / 8), (ix % 8)) for ix in range(0, 64)]
3435
grid_x, grid_y = np.mgrid[0:7:32j, 0:7:32j]
36+
# pylint: enable=invalid-slice-index
3537

3638
#sensor is an 8x8 grid so lets do a square
3739
height = 240
@@ -82,7 +84,7 @@ def map_value(x, in_min, in_max, out_min, out_max):
8284
for ix, row in enumerate(bicubic):
8385
for jx, pixel in enumerate(row):
8486
pygame.draw.rect(lcd, colors[constrain(int(pixel), 0, COLORDEPTH- 1)],
85-
(displayPixelHeight * ix, displayPixelWidth * jx,
86-
displayPixelHeight, displayPixelWidth))
87+
(displayPixelHeight * ix, displayPixelWidth * jx,
88+
displayPixelHeight, displayPixelWidth))
8789

8890
pygame.display.update()

0 commit comments

Comments
 (0)