From patchwork Tue May 12 00:03:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3768 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8935360DF6 for ; Tue, 12 May 2020 02:03:40 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Epmg2UCB"; 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 6C2DE33E; Tue, 12 May 2020 02:03:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1589241820; bh=FT3wRnF1P/D/yfxOKeNGRBK6YckDeXAEagCXEYy1ss0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Epmg2UCBIuRAaD3Uqh0QJDAQy49v0LUF1lnxp50uj2AinXkGDR51ZkgUR3MTw8jRx /8k0SCVIj/w9GC9LXDJmZ/j2+xhjYXmnt8+W4y/FpLRpCPpMCdVViMjY7koldlA1/h fmdd1VFTCI3PaLtY8qLHDyXsa7NVQ9/I7MXxQT8Y= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 12 May 2020 03:03:12 +0300 Message-Id: <20200512000322.11753-15-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 14/24] utils: raspberrypi: ctt: Fix pycodestyle E222 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:40 -0000 E222 multiple spaces after operator Signed-off-by: Laurent Pinchart --- utils/raspberrypi/ctt/ctt.py | 2 +- utils/raspberrypi/ctt/ctt_awb.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/raspberrypi/ctt/ctt.py b/utils/raspberrypi/ctt/ctt.py index 4d8d6addf415..f4cf37a03611 100755 --- a/utils/raspberrypi/ctt/ctt.py +++ b/utils/raspberrypi/ctt/ctt.py @@ -739,7 +739,7 @@ def run_ctt(json_output, directory, config, log_output): do_alsc_colour = get_config(alsc_d, "do_alsc_colour", 1, 'bool') luminance_strength = get_config(alsc_d, "luminance_strength", 0.5, 'num') blacklevel = get_config(configs, "blacklevel", -1, 'num') - macbeth_d = get_config(configs, "macbeth", {}, 'dict') + macbeth_d = get_config(configs, "macbeth", {}, 'dict') mac_small = get_config(macbeth_d, "small", 0, 'bool') mac_show = get_config(macbeth_d, "show", 0, 'bool') mac_config = (mac_small, mac_show) diff --git a/utils/raspberrypi/ctt/ctt_awb.py b/utils/raspberrypi/ctt/ctt_awb.py index e97d833d0e49..9b30115f53f4 100644 --- a/utils/raspberrypi/ctt/ctt_awb.py +++ b/utils/raspberrypi/ctt/ctt_awb.py @@ -330,7 +330,7 @@ def get_alsc_patches(Img, colour_cals, grey=True): """ this works because -0 = 0 = first and -1 = last index """ - col_tabs = np.array(colour_cals[cts[-pos//len(cts)]]) + col_tabs = np.array(colour_cals[cts[-pos//len(cts)]]) """ else, perform linear interpolation between existing alsc colour calibration tables