From 3845db7260d39ef274c00ea5bc6b4eb70ecbb581 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 24 Aug 2020 15:47:15 -0500 Subject: [PATCH] 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 --- examples/amg88xx_rpi_thermal_cam.py | 6 ++++-- examples/amg88xx_rpi_thermal_cam_console.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/amg88xx_rpi_thermal_cam.py b/examples/amg88xx_rpi_thermal_cam.py index d36a659..2833682 100644 --- a/examples/amg88xx_rpi_thermal_cam.py +++ b/examples/amg88xx_rpi_thermal_cam.py @@ -5,11 +5,11 @@ import math import time +import numpy as np +import pygame import busio import board -import numpy as np -import pygame from scipy.interpolate import griddata from colour import Color @@ -28,7 +28,9 @@ COLORDEPTH = 1024 os.putenv("SDL_FBDEV", "/dev/fb1") +# pylint: disable=no-member pygame.init() +# pylint: enable=no-member # initialize the sensor sensor = adafruit_amg88xx.AMG88XX(i2c_bus) diff --git a/examples/amg88xx_rpi_thermal_cam_console.py b/examples/amg88xx_rpi_thermal_cam_console.py index ded8da9..85615f2 100644 --- a/examples/amg88xx_rpi_thermal_cam_console.py +++ b/examples/amg88xx_rpi_thermal_cam_console.py @@ -4,9 +4,9 @@ import sys import math import time +import numpy as np import busio import board -import numpy as np from scipy.interpolate import griddata from colour import Color import adafruit_amg88xx