[libcamera-devel,22/24] utils: raspberrypi: ctt: Fix pycodestyle E741

Message ID 20200512000322.11753-23-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • utils: raspberrypi: ctt: Comply with pycodestyle
Related show

Commit Message

Laurent Pinchart May 12, 2020, 12:03 a.m. UTC
E741 ambiguous variable name 'l'

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 utils/raspberrypi/ctt/ctt.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/utils/raspberrypi/ctt/ctt.py b/utils/raspberrypi/ctt/ctt.py
index cb01a517e8bc..8f8e06f069df 100755
--- a/utils/raspberrypi/ctt/ctt.py
+++ b/utils/raspberrypi/ctt/ctt.py
@@ -478,8 +478,8 @@  class Camera:
         """
         take the average of the interquartile
         """
-        l = len(noise_out)
-        noise_out = np.mean(noise_out[l//4:1+3*l//4], axis=0)
+        length = len(noise_out)
+        noise_out = np.mean(noise_out[length//4:1+3*length//4], axis=0)
         self.log += '\nAverage noise profile: constant = {} '.format(int(noise_out[1]))
         self.log += 'slope = {:.3f}'.format(noise_out[0])
         """