From patchwork Tue May 12 00:03:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3776 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E09B360E38 for ; Tue, 12 May 2020 02:03:47 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="YjYdc/qa"; dkim-atps=neutral Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5D8FD33E; Tue, 12 May 2020 02:03:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1589241827; bh=rgsOsGt+tVmmcbA4kGLjwqlo/Ju4yD6IKzXoFCF0zfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YjYdc/qaYtQiksGStpBCKNXYipOriSZNyH9Nkb5r/bzGey1tb0lEFkgyuqBuEwSLF sUp9LMPI/BZSPhKvZQEdp/hT+dOAzaDqGMZD7qki6HvPlK7oNfDgCYNYSGYlnAHjde gLJBwHgKa9Th2ZY4oBHZ4iQiBr9hlGLTI1ArxvyU= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 12 May 2020 03:03:20 +0300 Message-Id: <20200512000322.11753-23-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200512000322.11753-1-laurent.pinchart@ideasonboard.com> References: <20200512000322.11753-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 22/24] utils: raspberrypi: ctt: Fix pycodestyle E741 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2020 00:03:48 -0000 E741 ambiguous variable name 'l' Signed-off-by: Laurent Pinchart --- utils/raspberrypi/ctt/ctt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]) """