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>
This commit is contained in:
parent
6eb1bce9c7
commit
965cae72a7
6 changed files with 9 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue