summaryrefslogtreecommitdiff
path: root/utils/raspberrypi/ctt/ctt_ransac.py
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-02 03:32:00 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-13 16:58:12 +0300
commit23f9f46c8a42ef63cd55d7b841e6065ba222f870 (patch)
tree5c52a47f35f0477e573de70c41f4021924a93192 /utils/raspberrypi/ctt/ctt_ransac.py
parent965cae72a79e870f68c6bc28231d701f3518f246 (diff)
utils: raspberrypi: ctt: Fix pycodestyle E128
E128 continuation line under-indented for visual indent 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.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/utils/raspberrypi/ctt/ctt_ransac.py b/utils/raspberrypi/ctt/ctt_ransac.py
index f7a722e0..a1f5e8c9 100644
--- a/utils/raspberrypi/ctt/ctt_ransac.py
+++ b/utils/raspberrypi/ctt/ctt_ransac.py
@@ -29,11 +29,11 @@ def get_square_verts(c_err=0.05, scale=scale):
square_verts = []
square_0 = np.array(((0, 0), (0, side),
- (side, side), (side, 0)), np.float32)
+ (side, side), (side, 0)), np.float32)
offset_0 = np.array((b_bord_x, b_bord_y), np.float32)
c_off = side * c_err
offset_cont = np.array(((c_off, c_off), (c_off, -c_off),
- (-c_off, -c_off), (-c_off, c_off)), np.float32)
+ (-c_off, -c_off), (-c_off, c_off)), np.float32)
square_0 += offset_0
square_0 += offset_cont
"""
@@ -41,16 +41,16 @@ def get_square_verts(c_err=0.05, scale=scale):
"""
for i in range(6):
shift_i = np.array(((i*side, 0), (i*side, 0),
- (i*side, 0), (i*side, 0)), np.float32)
+ (i*side, 0), (i*side, 0)), np.float32)
shift_bord =np.array(((i*s_bord, 0), (i*s_bord, 0),
- (i*s_bord, 0), (i*s_bord, 0)), np.float32)
+ (i*s_bord, 0), (i*s_bord, 0)), np.float32)
square_i = square_0 + shift_i + shift_bord
for j in range(4):
shift_j = np.array(((0, j*side), (0, j*side),
- (0, j*side), (0, j*side)), np.float32)
+ (0, j*side), (0, j*side)), np.float32)
shift_bord = np.array(((0, j*s_bord),
- (0, j*s_bord), (0, j*s_bord),
- (0, j*s_bord)), np.float32)
+ (0, j*s_bord), (0, j*s_bord),
+ (0, j*s_bord)), np.float32)
square_j = square_i + shift_j + shift_bord
square_verts.append(square_j)
# print('square_verts')