From 90083757aecf4023161e3a06299458a611609792 Mon Sep 17 00:00:00 2001 From: janeptrv Date: Fri, 6 Nov 2020 23:15:40 -0500 Subject: [PATCH] tuple time@ --- light_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/light_manager.py b/light_manager.py index 689c7ea..e4aa98b 100644 --- a/light_manager.py +++ b/light_manager.py @@ -25,8 +25,8 @@ class LightStrip: n = np.n for i in range(n): col = self.pattern(i, t) - logging.debug("TEST VALUES: np {} col {} same {}".format(np[i], col, np[i] != col)) - if np[i] != col: + logging.debug("TEST VALUES: np {} col {} same {}".format(np[i], col, tuple(np[i]) != col)) + if tuple(np[i]) != col: np[i] = col logging.debug("CHANGE COLOR OF PIXEL {} TO {} ON TICK {}".format(i, col, t)) break;