{"id":13067,"url":"https://patchwork.libcamera.org/api/1.1/patches/13067/?format=json","web_url":"https://patchwork.libcamera.org/patch/13067/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/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":"<20210721115220.5090-2-david.plowman@raspberrypi.com>","date":"2021-07-21T11:52:18","name":"[libcamera-devel,1/3] utils: raspberrypi: ctt: Fix namespace for sklearn NearestCentroid function","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"88fa11590b77ee90d8aa8b1ad857d433e5439701","submitter":{"id":42,"url":"https://patchwork.libcamera.org/api/1.1/people/42/?format=json","name":"David Plowman","email":"david.plowman@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/13067/mbox/","series":[{"id":2265,"url":"https://patchwork.libcamera.org/api/1.1/series/2265/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2265","date":"2021-07-21T11:52:17","name":"Raspberry Pi: support imx378 sensor","version":1,"mbox":"https://patchwork.libcamera.org/series/2265/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/13067/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/13067/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 1B642C322B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 21 Jul 2021 11:52:35 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 4A0426854D;\n\tWed, 21 Jul 2021 13:52:33 +0200 (CEST)","from mail-wr1-x430.google.com (mail-wr1-x430.google.com\n\t[IPv6:2a00:1450:4864:20::430])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 39E1B60277\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 21 Jul 2021 13:52:31 +0200 (CEST)","by mail-wr1-x430.google.com with SMTP id f9so1860942wrq.11\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 21 Jul 2021 04:52:31 -0700 (PDT)","from pi4-davidp.pitowers.org\n\t([2a00:1098:3142:14:1ce1:9965:4328:89c4])\n\tby smtp.gmail.com with ESMTPSA id\n\te11sm32876268wrt.0.2021.07.21.04.52.30\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 21 Jul 2021 04:52:30 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"GY2FaIpo\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=6EYjUtwypHNxG2ijJTwL1W6AmKuv3xwtPIUos8sHgKE=;\n\tb=GY2FaIpo61bDhsjCl5052uIri5KMF0tQ9zWW3eoXhYsg2ijucqHujoRYRzXmJd7AX3\n\tKc4HlOHW4Q3fLsPP6hTaQuAIuBB4HUVcDV5mRXLSiWUPYBIgL5jKC8CaPNUxmV0Wy2cy\n\td4Ia8fY+igDHqjBftlV3yZuYdxLzZvD4lzIIRE2WZ4kpt6Pg6Yd7HEB0oN+ZGl7/vVCw\n\tAIeiyD6KlE7tbdYgW+yfpEqbdrMwB0ksdiHKf7rJ/KErKzpveJVnIeuE7r/gyJQyePg4\n\tVAuYOhuIAUvQ5sC7U8OzQDwdxbh4ZCbgGWQ1B8FJawRAE2EYTOv8TkZA4iK9W319zrfv\n\tGumw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=6EYjUtwypHNxG2ijJTwL1W6AmKuv3xwtPIUos8sHgKE=;\n\tb=EdItZpvHag7NATKKjuM6eGY4ZGzg4YLP3X3lcg0Y9wv4s/H5rH4bSJEypEakcxRidp\n\tA+Vj6RYRpZ6kH0DNwyt30UXxeuCMa8QupeegE/VAuXMdu7SUS7a6H7kEAyxWMmcJE0/D\n\tnyRrbbA/oxqz4zsjbgKQgPHXX/gCllR63ZhdF6etQuXiw3yMdjZ/q1WYKtHS+HY9ZGD0\n\tcEzPWfm2vgyTKvRPs4nyfA5i0+tGYFTeB8y3GQB8nXCUDJMwYXhqakIqmDVx3DMcvnJu\n\taTwjcfq8oy6dKnoJBLjyELc1jWVWUpGMWcLYmkZCcT2XmUqQcymqnhIgVX0ZUzhjP2ZW\n\tNZEQ==","X-Gm-Message-State":"AOAM532tbAvI8Tj+SW7GeBfLXezK02YyXfdwU/Oa7PzHh5KI1b7MAHtH\n\tu/nYcrEERZrOph49vdRR6z42QMVIGnYYmQ==","X-Google-Smtp-Source":"ABdhPJzJugMhAN4iI3nxq/KBB6rG5/ANCmf4aqz6v0VD8LUrlVh46cDw2PeybP5nk8rwuDW1h0X+Tg==","X-Received":"by 2002:adf:e689:: with SMTP id\n\tr9mr41837042wrm.416.1626868350816; \n\tWed, 21 Jul 2021 04:52:30 -0700 (PDT)","From":"David Plowman <david.plowman@raspberrypi.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 21 Jul 2021 12:52:18 +0100","Message-Id":"<20210721115220.5090-2-david.plowman@raspberrypi.com>","X-Mailer":"git-send-email 2.20.1","In-Reply-To":"<20210721115220.5090-1-david.plowman@raspberrypi.com>","References":"<20210721115220.5090-1-david.plowman@raspberrypi.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 1/3] utils: raspberrypi: ctt: Fix\n\tnamespace for sklearn NearestCentroid function","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>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"The NearestCentroid function is now in the sklearn.neighbors\nnamespace.\n\nSigned-off-by: David Plowman <david.plowman@raspberrypi.com>\n---\n utils/raspberrypi/ctt/ctt_tools.py | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/utils/raspberrypi/ctt/ctt_tools.py b/utils/raspberrypi/ctt/ctt_tools.py\nindex 48e0aac2..8728ff16 100644\n--- a/utils/raspberrypi/ctt/ctt_tools.py\n+++ b/utils/raspberrypi/ctt/ctt_tools.py\n@@ -14,7 +14,7 @@ import imutils\n import sys\n import matplotlib.pyplot as plt\n from sklearn import cluster as cluster\n-from sklearn.neighbors.nearest_centroid import NearestCentroid as get_centroids\n+from sklearn.neighbors import NearestCentroid as get_centroids\n \n \"\"\"\n This file contains some useful tools, the details of which aren't important to\n","prefixes":["libcamera-devel","1/3"]}