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:22 +0300 |
commit | 641c6ebe9b278e0b00f0125133eebe9c0037ab88 (patch) | |
tree | 977be2b537c540af575f01dd2ada7e5841c48273 /utils/raspberrypi/ctt/ctt_alsc.py | |
parent | 23f9f46c8a42ef63cd55d7b841e6065ba222f870 (diff) |
utils: raspberrypi: ctt: Fix pycodestyle E225
E225 missing whitespace around 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 a006f7ff..d6e1020f 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)) """ |