diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-02 03:32:00 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-13 16:58:32 +0300 |
commit | 863e31fa52b837d30d38de9ba5d7e30096297b0c (patch) | |
tree | bd0e6c3277b9ebf67a6ae9534e260584c53fee1e /utils/raspberrypi/ctt/ctt_ccm.py | |
parent | 641c6ebe9b278e0b00f0125133eebe9c0037ab88 (diff) |
utils: raspberrypi: ctt: Fix pycodestyle E228
E228 missing whitespace around modulo operator
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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/raspberrypi/ctt/ctt_ccm.py b/utils/raspberrypi/ctt/ctt_ccm.py index 52fd9744..adc4d290 100644 --- a/utils/raspberrypi/ctt/ctt_ccm.py +++ b/utils/raspberrypi/ctt/ctt_ccm.py @@ -135,8 +135,8 @@ def ccm(Cam, cal_cr_list, cal_cb_list): """ for k, v in ccm_tab.items(): tab = np.mean(v, axis=0) - tab = np.where((10000*tab)%1 <= 0.05, tab+0.00001, tab) - tab = np.where((10000*tab)%1 >= 0.95, tab-0.00001, tab) + tab = np.where((10000*tab) % 1 <= 0.05, tab+0.00001, tab) + tab = np.where((10000*tab) % 1 >= 0.95, tab-0.00001, tab) ccm_tab[k] = list(np.round(tab, 5)) Cam.log += '\nMatrix calculated for colour temperature of {} K'.format(k) |