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:07 +0300 |
commit | 965cae72a79e870f68c6bc28231d701f3518f246 (patch) | |
tree | adf6cc520612443146c4a4b0b48369a31c05ae61 /utils/raspberrypi/ctt/ctt_ransac.py | |
parent | 6eb1bce9c77f604bb51d4a531013d328405a6c7b (diff) |
utils: raspberrypi: ctt: Fix pycodestyle E251
E251 unexpected spaces around keyword / parameter equals
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_ransac.py')
-rw-r--r-- | utils/raspberrypi/ctt/ctt_ransac.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/raspberrypi/ctt/ctt_ransac.py b/utils/raspberrypi/ctt/ctt_ransac.py index a1513625..f7a722e0 100644 --- a/utils/raspberrypi/ctt/ctt_ransac.py +++ b/utils/raspberrypi/ctt/ctt_ransac.py @@ -11,7 +11,7 @@ scale = 2 """ constructs normalised macbeth chart corners for ransac algorithm """ -def get_square_verts(c_err = 0.05, scale = scale): +def get_square_verts(c_err=0.05, scale=scale): """ define macbeth chart corners """ @@ -57,13 +57,13 @@ def get_square_verts(c_err = 0.05, scale = scale): # print(square_verts) return np.array(square_verts, np.float32), mac_norm -def get_square_centres(c_err = 0.05, scale=scale): +def get_square_centres(c_err=0.05, scale=scale): """ define macbeth square centres """ verts, mac_norm = get_square_verts(c_err, scale=scale) - centres = np.mean(verts, axis = 1) + centres = np.mean(verts, axis=1) # print('centres') # print(centres) return np.array(centres, np.float32) |