summaryrefslogtreecommitdiff
path: root/utils/raspberrypi/ctt/ctt_image_load.py
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-02 03:32:00 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-13 16:57:43 +0300
commitd6527d382e4853728287503860d253f9431de169 (patch)
treea1f5810e516d05461f1643aed539ea4d541eb0d4 /utils/raspberrypi/ctt/ctt_image_load.py
parentda88fcec0d4930bbcec0a44f678f744bfa5334b8 (diff)
utils: raspberrypi: ctt: Fix pycodestyle E203
E203 whitespace before ':' Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Diffstat (limited to 'utils/raspberrypi/ctt/ctt_image_load.py')
-rw-r--r--utils/raspberrypi/ctt/ctt_image_load.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/raspberrypi/ctt/ctt_image_load.py b/utils/raspberrypi/ctt/ctt_image_load.py
index 7d097118..035256e3 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]