utils: raspberrypi: ctt: Fix pycodestyle E711 and E712

E711 comparison to None should be 'if cond is None:'
E711 comparison to None should be 'if cond is not None:'
E712 comparison to False should be 'if cond is False:' or 'if not cond:'
E712 comparison to True should be 'if cond is True:' or 'if cond:'

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:
Laurent Pinchart 2020-05-02 03:32:00 +03:00
parent 5f2160cc96
commit ca73168e75
6 changed files with 17 additions and 17 deletions

View file

@ -17,7 +17,7 @@ def awb(Cam, cal_cr_list, cal_cb_list, plot):
"""
condense alsc calibration tables into one dictionary
"""
if cal_cr_list == None:
if cal_cr_list is None:
colour_cals = None
else:
colour_cals = {}
@ -315,7 +315,7 @@ def get_alsc_patches(Img, colour_cals, grey=True):
b_patchs = patches[3] - Img.blacklevel_16
g_patchs = (patches[1]+patches[2])/2 - Img.blacklevel_16
if colour_cals == None:
if colour_cals is None:
return r_patchs, b_patchs, g_patchs
"""
find where image colour fits in alsc colour calibration tables