[libcamera-devel,12/24] utils: raspberrypi: ctt: Fix pycodestyle E261 and E262

Message ID 20200512000322.11753-13-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • utils: raspberrypi: ctt: Comply with pycodestyle
Related show

Commit Message

Laurent Pinchart May 12, 2020, 12:03 a.m. UTC
E261 at least two spaces before inline comment
E262 inline comment should start with '# '

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 utils/raspberrypi/ctt/ctt_image_load.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Patch

diff --git a/utils/raspberrypi/ctt/ctt_image_load.py b/utils/raspberrypi/ctt/ctt_image_load.py
index 584e0f8ebaa5..38026c7a93c0 100644
--- a/utils/raspberrypi/ctt/ctt_image_load.py
+++ b/utils/raspberrypi/ctt/ctt_image_load.py
@@ -45,11 +45,11 @@  class Image:
         Channel order depending on bayer pattern
         """
         bayer_case = {
-            0: (0, 1, 2, 3), #red
-            1: (2, 0, 3, 1), #green next to red
-            2: (3, 2, 1, 0), #green next to blue
-            3: (1, 0, 3, 2), #blue
-            128: (0, 1, 2, 3) #arbitrary order for greyscale casw
+            0: (0, 1, 2, 3),   # red
+            1: (2, 0, 3, 1),   # green next to red
+            2: (3, 2, 1, 0),   # green next to blue
+            3: (1, 0, 3, 2),   # blue
+            128: (0, 1, 2, 3)  # arbitrary order for greyscale casw
         }
         self.order = bayer_case[self.pattern]