summaryrefslogtreecommitdiff
path: root/utils/raspberrypi/ctt/ctt_geq.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:07 +0300
commit965cae72a79e870f68c6bc28231d701f3518f246 (patch)
treeadf6cc520612443146c4a4b0b48369a31c05ae61 /utils/raspberrypi/ctt/ctt_geq.py
parent6eb1bce9c77f604bb51d4a531013d328405a6c7b (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_geq.py')
-rw-r--r--utils/raspberrypi/ctt/ctt_geq.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/raspberrypi/ctt/ctt_geq.py b/utils/raspberrypi/ctt/ctt_geq.py
index 17598640..1ffa4e91 100644
--- a/utils/raspberrypi/ctt/ctt_geq.py
+++ b/utils/raspberrypi/ctt/ctt_geq.py
@@ -27,7 +27,7 @@ def geq_fit(Cam, plot):
data is sorted by green difference and top half is selected since higher
green difference data define the decision boundary.
"""
- geqs = np.array(sorted(geqs, key = lambda r: np.abs((r[1]-r[0])/r[0])))
+ geqs = np.array(sorted(geqs, key=lambda r: np.abs((r[1]-r[0])/r[0])))
length = len(geqs)
g0 = geqs[length//2:, 0]