Skip to content

Commit d199abb

Browse files
committed
fix reversing bands when band pixel counts are not equeal. np.flip requires equal array lenghts and will crash.
1 parent 1c727c4 commit d199abb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ledfx/effects/bands_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def render(self):
6666
out_split[i] = np.flip(out_split[i], axis=0)
6767

6868
if self.flip_horizontal:
69-
out_split = np.flip(out_split, axis=0)
69+
out_split.reverse()
7070

7171
self.pixels = np.vstack(out_split)
7272
self.roll_gradient()

0 commit comments

Comments
 (0)