Skip to content

Commit 3845db7

Browse files
committed
Correct pylint errors
- order of imported modules - spurious missing pygame.init() due https://stackoverflow.com/questions/50569453/why-does-it-say-that-module-pygame-has-no-init-member
1 parent c92b40c commit 3845db7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

examples/amg88xx_rpi_thermal_cam.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
import math
66
import time
77

8+
import numpy as np
9+
import pygame
810
import busio
911
import board
1012

11-
import numpy as np
12-
import pygame
1313
from scipy.interpolate import griddata
1414

1515
from colour import Color
@@ -28,7 +28,9 @@
2828
COLORDEPTH = 1024
2929

3030
os.putenv("SDL_FBDEV", "/dev/fb1")
31+
# pylint: disable=no-member
3132
pygame.init()
33+
# pylint: enable=no-member
3234

3335
# initialize the sensor
3436
sensor = adafruit_amg88xx.AMG88XX(i2c_bus)

examples/amg88xx_rpi_thermal_cam_console.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import sys
55
import math
66
import time
7+
import numpy as np
78
import busio
89
import board
9-
import numpy as np
1010
from scipy.interpolate import griddata
1111
from colour import Color
1212
import adafruit_amg88xx

0 commit comments

Comments
 (0)