From patchwork Wed Jul 21 11:52:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 13067 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 1B642C322B for ; Wed, 21 Jul 2021 11:52:35 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4A0426854D; Wed, 21 Jul 2021 13:52:33 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="GY2FaIpo"; dkim-atps=neutral Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 39E1B60277 for ; Wed, 21 Jul 2021 13:52:31 +0200 (CEST) Received: by mail-wr1-x430.google.com with SMTP id f9so1860942wrq.11 for ; Wed, 21 Jul 2021 04:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6EYjUtwypHNxG2ijJTwL1W6AmKuv3xwtPIUos8sHgKE=; b=GY2FaIpo61bDhsjCl5052uIri5KMF0tQ9zWW3eoXhYsg2ijucqHujoRYRzXmJd7AX3 Kc4HlOHW4Q3fLsPP6hTaQuAIuBB4HUVcDV5mRXLSiWUPYBIgL5jKC8CaPNUxmV0Wy2cy d4Ia8fY+igDHqjBftlV3yZuYdxLzZvD4lzIIRE2WZ4kpt6Pg6Yd7HEB0oN+ZGl7/vVCw AIeiyD6KlE7tbdYgW+yfpEqbdrMwB0ksdiHKf7rJ/KErKzpveJVnIeuE7r/gyJQyePg4 VAuYOhuIAUvQ5sC7U8OzQDwdxbh4ZCbgGWQ1B8FJawRAE2EYTOv8TkZA4iK9W319zrfv Gumw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6EYjUtwypHNxG2ijJTwL1W6AmKuv3xwtPIUos8sHgKE=; b=EdItZpvHag7NATKKjuM6eGY4ZGzg4YLP3X3lcg0Y9wv4s/H5rH4bSJEypEakcxRidp A+Vj6RYRpZ6kH0DNwyt30UXxeuCMa8QupeegE/VAuXMdu7SUS7a6H7kEAyxWMmcJE0/D nyRrbbA/oxqz4zsjbgKQgPHXX/gCllR63ZhdF6etQuXiw3yMdjZ/q1WYKtHS+HY9ZGD0 cEzPWfm2vgyTKvRPs4nyfA5i0+tGYFTeB8y3GQB8nXCUDJMwYXhqakIqmDVx3DMcvnJu aTwjcfq8oy6dKnoJBLjyELc1jWVWUpGMWcLYmkZCcT2XmUqQcymqnhIgVX0ZUzhjP2ZW NZEQ== X-Gm-Message-State: AOAM532tbAvI8Tj+SW7GeBfLXezK02YyXfdwU/Oa7PzHh5KI1b7MAHtH u/nYcrEERZrOph49vdRR6z42QMVIGnYYmQ== X-Google-Smtp-Source: ABdhPJzJugMhAN4iI3nxq/KBB6rG5/ANCmf4aqz6v0VD8LUrlVh46cDw2PeybP5nk8rwuDW1h0X+Tg== X-Received: by 2002:adf:e689:: with SMTP id r9mr41837042wrm.416.1626868350816; Wed, 21 Jul 2021 04:52:30 -0700 (PDT) Received: from pi4-davidp.pitowers.org ([2a00:1098:3142:14:1ce1:9965:4328:89c4]) by smtp.gmail.com with ESMTPSA id e11sm32876268wrt.0.2021.07.21.04.52.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 04:52:30 -0700 (PDT) From: David Plowman 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 Subject: [libcamera-devel] [PATCH 1/3] utils: raspberrypi: ctt: Fix namespace for sklearn NearestCentroid function 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The NearestCentroid function is now in the sklearn.neighbors namespace. Signed-off-by: David Plowman Reviewed-by: Naushir Patuck Reviewed-by: Kieran Bingham --- utils/raspberrypi/ctt/ctt_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/raspberrypi/ctt/ctt_tools.py b/utils/raspberrypi/ctt/ctt_tools.py index 48e0aac2..8728ff16 100644 --- a/utils/raspberrypi/ctt/ctt_tools.py +++ b/utils/raspberrypi/ctt/ctt_tools.py @@ -14,7 +14,7 @@ import imutils import sys import matplotlib.pyplot as plt from sklearn import cluster as cluster -from sklearn.neighbors.nearest_centroid import NearestCentroid as get_centroids +from sklearn.neighbors import NearestCentroid as get_centroids """ This file contains some useful tools, the details of which aren't important to