From aa039b4c0f6602646bf29a102a5fcbc822064c14 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Wed, 23 Jan 2019 11:43:05 -0500 Subject: [PATCH] FIX: Fix for NumPy deprecation --- apptools/persistence/state_pickler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apptools/persistence/state_pickler.py b/apptools/persistence/state_pickler.py index aed0bdcb2..fb82746f4 100644 --- a/apptools/persistence/state_pickler.py +++ b/apptools/persistence/state_pickler.py @@ -658,10 +658,10 @@ def _do_numeric(self, value, path): if isinstance(data, str): data = value['data'].encode('utf-8') junk = gunzip_string(base64.decodebytes(data)) - result = numpy.loads(junk, encoding='bytes') + result = pickle.loads(junk, encoding='bytes') else: junk = gunzip_string(value['data'].decode('base64')) - result = numpy.loads(junk) + result = pickle.loads(junk) self._numeric[value['id']] = (path, result) self._obj_cache[value['id']] = result return result