summaryrefslogtreecommitdiff
path: root/utils/raspberrypi/ctt/ctt_ccm.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:30 +0300
commitda88fcec0d4930bbcec0a44f678f744bfa5334b8 (patch)
treee4c1c9315b4a9ddb1ba6996345918ec7e44df050 /utils/raspberrypi/ctt/ctt_ccm.py
parent93a133fb17ea6997a42e9d7f07e3c7785abc7d14 (diff)
utils: raspberrypi: ctt: Fix pycodestyle E201 and E202
E201 whitespace after '(' E201 whitespace after '{' E201 whitespace after '[' E202 whitespace before '}' E202 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_ccm.py')
-rw-r--r--utils/raspberrypi/ctt/ctt_ccm.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/raspberrypi/ctt/ctt_ccm.py b/utils/raspberrypi/ctt/ctt_ccm.py
index 1771fc43..44fb8188 100644
--- a/utils/raspberrypi/ctt/ctt_ccm.py
+++ b/utils/raspberrypi/ctt/ctt_ccm.py
@@ -168,12 +168,12 @@ def do_ccm(r, g, b, m_srgb):
rb_gbs = (rb*gb)
gb_2s = (gb*gb)
- r_rbs = ( rb * (m_srgb[..., 0] - b) )
- r_gbs = ( gb * (m_srgb[..., 0] - b) )
- g_rbs = ( rb * (m_srgb[..., 1] - b) )
- g_gbs = ( gb * (m_srgb[..., 1] - b) )
- b_rbs = ( rb * (m_srgb[..., 2] - b) )
- b_gbs = ( gb * (m_srgb[..., 2] - b) )
+ r_rbs = rb * (m_srgb[..., 0] - b)
+ r_gbs = gb * (m_srgb[..., 0] - b)
+ g_rbs = rb * (m_srgb[..., 1] - b)
+ g_gbs = gb * (m_srgb[..., 1] - b)
+ b_rbs = rb * (m_srgb[..., 2] - b)
+ b_gbs = gb * (m_srgb[..., 2] - b)
"""
Obtain least squares fit