{"id":8472,"url":"https://patchwork.libcamera.org/api/patches/8472/?format=json","web_url":"https://patchwork.libcamera.org/patch/8472/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200628123730.31992-1-laurent.pinchart@ideasonboard.com>","date":"2020-06-28T12:37:30","name":"[libcamera-devel,v2] utils: raspberrypi: ctt: Fix pycodestyle W605","commit_ref":"e7aa92a883c170c7f14a6aa93f13a6d75c2b7d62","pull_url":null,"state":"accepted","archived":false,"hash":"64bcc1cff824242f4820b1b5106719cd71915c9b","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/8472/mbox/","series":[{"id":1050,"url":"https://patchwork.libcamera.org/api/series/1050/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1050","date":"2020-06-28T12:37:30","name":"[libcamera-devel,v2] utils: raspberrypi: ctt: Fix pycodestyle W605","version":2,"mbox":"https://patchwork.libcamera.org/series/1050/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/8472/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/8472/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 7F988C2E69\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSun, 28 Jun 2020 12:37:40 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id F0723609D6;\n\tSun, 28 Jun 2020 14:37:39 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 515D5609A3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 28 Jun 2020 14:37:38 +0200 (CEST)","from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 32F0D4FB;\n\tSun, 28 Jun 2020 14:37:37 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"GdCjoPEL\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1593347858;\n\tbh=ixyth3IeMRhJas3olS7zBLaWWafJ+wtbe8DQa57vU1Y=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=GdCjoPELb2BZ96Z7bItw+DE0Cs0KhvkBN65CkgOAA2W9/UGFHlDtlElS4+kxjtgUO\n\toQzU9r5mNWQyxKg14sVq7OBBJvnMPSJ++0bQKlxeHimJHhSun/CGDHj+dwh08jtOA+\n\tz1GsQZlsAsXFjXyNgODHFEMr+QFyNI3AZQaQavB8=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Sun, 28 Jun 2020 15:37:30 +0300","Message-Id":"<20200628123730.31992-1-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.27.0","MIME-Version":"1.0","Subject":"[libcamera-devel] [PATCH v2] utils: raspberrypi: ctt: Fix\n\tpycodestyle W605","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"W605 invalid escape sequence '\\.'\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\nChanges since v1:\n\n- Use raw strings for regular expressions\n---\n utils/raspberrypi/ctt/ctt.py     | 4 ++--\n utils/raspberrypi/ctt/ctt_awb.py | 4 ++--\n 2 files changed, 4 insertions(+), 4 deletions(-)","diff":"diff --git a/utils/raspberrypi/ctt/ctt.py b/utils/raspberrypi/ctt/ctt.py\nindex d7e38c31986d..30d35ae4e3d4 100755\n--- a/utils/raspberrypi/ctt/ctt.py\n+++ b/utils/raspberrypi/ctt/ctt.py\n@@ -42,8 +42,8 @@ def get_col_lux(string):\n     \"\"\"\n     Extract colour and lux values from filename\n     \"\"\"\n-    col = re.search('([0-9]+)[kK](\\.(jpg|jpeg|brcm|dng)|_.*\\.(jpg|jpeg|brcm|dng))$', string)\n-    lux = re.search('([0-9]+)[lL](\\.(jpg|jpeg|brcm|dng)|_.*\\.(jpg|jpeg|brcm|dng))$', string)\n+    col = re.search(r'([0-9]+)[kK](\\.(jpg|jpeg|brcm|dng)|_.*\\.(jpg|jpeg|brcm|dng))$', string)\n+    lux = re.search(r'([0-9]+)[lL](\\.(jpg|jpeg|brcm|dng)|_.*\\.(jpg|jpeg|brcm|dng))$', string)\n     try:\n         col = col.group(1)\n     except AttributeError:\ndiff --git a/utils/raspberrypi/ctt/ctt_awb.py b/utils/raspberrypi/ctt/ctt_awb.py\nindex 7055b8639178..3c8cd9027a1a 100644\n--- a/utils/raspberrypi/ctt/ctt_awb.py\n+++ b/utils/raspberrypi/ctt/ctt_awb.py\n@@ -257,8 +257,8 @@ def awb(Cam, cal_cr_list, cal_cb_list, plot):\n         plt.scatter(rbs_hat[0], rbs_hat[1], color='red')\n         for i, ct in enumerate(rbs_hat[2]):\n             plt.annotate(str(ct), (rbs_hat[0][i], rbs_hat[1][i]))\n-        plt.xlabel('$\\hat{r}$')\n-        plt.ylabel('$\\hat{b}$')\n+        plt.xlabel('$\\\\hat{r}$')\n+        plt.ylabel('$\\\\hat{b}$')\n         \"\"\"\n         optional set axes equal to shortest distance so line really does\n         looks perpendicular and everybody is happy\n","prefixes":["libcamera-devel","v2"]}