[python-hdf5storage] 09/12: Changed a reference to numpy.str_ to numpy.unicode_ so that they will be written as numpy.uin16 if possible on Python 2.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:24:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag 0.1.1
in repository python-hdf5storage.

commit 94f10e27ea300a354a52d5ee086e45280df0da0f
Author: Freja Nordsiek <fnordsie at gmail.com>
Date:   Fri Mar 7 18:46:07 2014 -0500

    Changed a reference to numpy.str_ to numpy.unicode_ so that they will be written as numpy.uin16 if possible on Python 2.
---
 hdf5storage/Marshallers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py
index 0fc408d..af623fa 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -593,7 +593,7 @@ class NumpyScalarArrayMarshaller(TypeMarshaller):
                         data_to_store)
                 except:
                     pass
-            if new_data is None or (type(data_to_store) == np.str_ \
+            if new_data is None or (type(data_to_store) == np.unicode_ \
                     and len(data_to_store) == len(new_data)) \
                     or (isinstance(data_to_store, np.ndarray) \
                     and new_data.shape[-1] != data_to_store.shape[-1] \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-hdf5storage.git



More information about the debian-science-commits mailing list