mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 15:29:45 +03:00
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>
This commit is contained in:
parent
641c6ebe9b
commit
863e31fa52
5 changed files with 20 additions and 20 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue