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_alsc.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_alsc.py')
-rw-r--r-- | utils/raspberrypi/ctt/ctt_alsc.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/raspberrypi/ctt/ctt_alsc.py b/utils/raspberrypi/ctt/ctt_alsc.py index d6e1020f..e768f8d6 100644 --- a/utils/raspberrypi/ctt/ctt_alsc.py +++ b/utils/raspberrypi/ctt/ctt_alsc.py @@ -61,10 +61,10 @@ def alsc_all(Cam, do_alsc_colour, plot): """ force numbers to be stored to 3dp.... :( """ - t_r = np.where((100*t_r)%1 <= 0.05, t_r+0.001, t_r) - t_b = np.where((100*t_b)%1 <= 0.05, t_b+0.001, t_b) - t_r = np.where((100*t_r)%1 >= 0.95, t_r-0.001, t_r) - t_b = np.where((100*t_b)%1 >= 0.95, t_b-0.001, t_b) + t_r = np.where((100*t_r) % 1 <= 0.05, t_r+0.001, t_r) + t_b = np.where((100*t_b) % 1 <= 0.05, t_b+0.001, t_b) + t_r = np.where((100*t_r) % 1 >= 0.95, t_r-0.001, t_r) + t_b = np.where((100*t_b) % 1 >= 0.95, t_b-0.001, t_b) t_r = np.round(t_r, 3) t_b = np.round(t_b, 3) r_corners = (t_r[0], t_r[15], t_r[-1], t_r[-16]) @@ -95,8 +95,8 @@ def alsc_all(Cam, do_alsc_colour, plot): average all values for luminance shading and return one table for all temperatures """ lum_lut = np.mean(list_cg, axis=0) - lum_lut = np.where((100*lum_lut)%1 <= 0.05, lum_lut+0.001, lum_lut) - lum_lut = np.where((100*lum_lut)%1 >= 0.95, lum_lut-0.001, lum_lut) + lum_lut = np.where((100*lum_lut) % 1 <= 0.05, lum_lut+0.001, lum_lut) + lum_lut = np.where((100*lum_lut) % 1 >= 0.95, lum_lut-0.001, lum_lut) lum_lut = list(np.round(lum_lut, 3)) """ |