From 31c1b96931faabbf8b5fa93431112bab9bdf1a2b Mon Sep 17 00:00:00 2001 From: Matt Dawkins Date: Mon, 18 Nov 2019 23:04:18 -0500 Subject: [PATCH] Support latest version on numpy --- python/smqtk/algorithms/nn_index/hash_index/linear.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/smqtk/algorithms/nn_index/hash_index/linear.py b/python/smqtk/algorithms/nn_index/hash_index/linear.py index 8a84d726c..e8924402f 100644 --- a/python/smqtk/algorithms/nn_index/hash_index/linear.py +++ b/python/smqtk/algorithms/nn_index/hash_index/linear.py @@ -119,7 +119,7 @@ def load_cache(self): with self._model_lock: if self.cache_element and not self.cache_element.is_empty(): buff = BytesIO(self.cache_element.get_bytes()) - self.index = set(numpy.load(buff)) + self.index = set(numpy.load(buff, allow_pickle=True)) def save_cache(self): """