From 5d8edd141c2473536f1271f15e1ef4da505f23da Mon Sep 17 00:00:00 2001 From: Marius Muja Date: Mon, 21 Mar 2011 02:07:08 -0700 Subject: [PATCH] bug fix (thanks Brad Atcheson) --- src/python/pyflann/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/python/pyflann/index.py b/src/python/pyflann/index.py index c112177..fac9bcb 100644 --- a/src/python/pyflann/index.py +++ b/src/python/pyflann/index.py @@ -205,7 +205,7 @@ class FLANN: raise FLANNException("build_index(...) method not called first or current index deleted.") if not qpts.dtype.type in allowed_types: - raise FLANNException("Cannot handle type: %s"%pts.dtype) + raise FLANNException("Cannot handle type: %s"%qpts.dtype) if self.__curindex_type != qpts.dtype.type: raise FLANNException("Index and query must have the same type") @@ -247,9 +247,9 @@ class FLANN: raise FLANNException("build_index(...) method not called first or current index deleted.") if not query.dtype.type in allowed_types: - raise FLANNException("Cannot handle type: %s"%pts.dtype) + raise FLANNException("Cannot handle type: %s"%query.dtype) - if self.__curindex_type != qpts.dtype.type: + if self.__curindex_type != query.dtype.type: raise FLANNException("Index and query must have the same type") npts, dim = self.__curindex_data.shape -- GitLab