From patchwork Tue May 12 00:03:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3766 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 B8F5E60DF6 for ; Tue, 12 May 2020 02:03:38 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="HrBn+EW4"; 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 2437D11F6; Tue, 12 May 2020 02:03:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1589241818; bh=FVM5Xhm/g4mBc9IPDickCIF/QzcEKxHtEs15XIGBGeQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HrBn+EW4OAhqIbZACNsRaLbMDhwpfPPJLtkc53lVNn+wRX/HKiKirQ6agwVdOh6ON Q1UfRL3tlH/LriAi9Mqnjgju5jxcMTtz2bVIHc36Hol126pAj9LGdtuO3pTvh5oeFv /gb3I06s93/1KUQlpZbOdlhPo1B5apeQ95QJ1pxo= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 12 May 2020 03:03:10 +0300 Message-Id: <20200512000322.11753-13-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 12/24] utils: raspberrypi: ctt: Fix pycodestyle E261 and E262 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:39 -0000 E261 at least two spaces before inline comment E262 inline comment should start with '# ' Signed-off-by: Laurent Pinchart --- utils/raspberrypi/ctt/ctt_image_load.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/raspberrypi/ctt/ctt_image_load.py b/utils/raspberrypi/ctt/ctt_image_load.py index 584e0f8ebaa5..38026c7a93c0 100644 --- a/utils/raspberrypi/ctt/ctt_image_load.py +++ b/utils/raspberrypi/ctt/ctt_image_load.py @@ -45,11 +45,11 @@ class Image: Channel order depending on bayer pattern """ bayer_case = { - 0: (0, 1, 2, 3), #red - 1: (2, 0, 3, 1), #green next to red - 2: (3, 2, 1, 0), #green next to blue - 3: (1, 0, 3, 2), #blue - 128: (0, 1, 2, 3) #arbitrary order for greyscale casw + 0: (0, 1, 2, 3), # red + 1: (2, 0, 3, 1), # green next to red + 2: (3, 2, 1, 0), # green next to blue + 3: (1, 0, 3, 2), # blue + 128: (0, 1, 2, 3) # arbitrary order for greyscale casw } self.order = bayer_case[self.pattern]