From b23bbc4d223e4e8904845b7f1dffedf0b156d1bd Mon Sep 17 00:00:00 2001 From: Kevin Kellner Date: Fri, 6 Jan 2017 19:40:29 +0100 Subject: [PATCH] Changed type from int to long For Python 3.5 compatibility. --- python/led.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/led.py b/python/led.py index b7ec783..4e84314 100644 --- a/python/led.py +++ b/python/led.py @@ -81,7 +81,7 @@ def _update_pi(): """ global pixels, _prev_pixels # Truncate values and cast to integer - pixels = np.clip(pixels, 0, 255).astype(long) + pixels = np.clip(pixels, 0, 255).astype(int) # Optional gamma correction p = _gamma[pixels] if config.SOFTWARE_GAMMA_CORRECTION else np.copy(pixels) # Encode 24-bit LED values in 32 bit integers @@ -105,7 +105,7 @@ def _update_blinkstick(): global pixels # Truncate values and cast to integer - pixels = np.clip(pixels, 0, 255).astype(long) + pixels = np.clip(pixels, 0, 255).astype(int) # Optional gamma correction p = _gamma[pixels] if config.SOFTWARE_GAMMA_CORRECTION else np.copy(pixels) # Read the rgb values