[python-hdf5storage] 08/152: Fixed bug in writting MATLAB_int_decode attribute for strings.

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


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

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

commit bbb048299ccc554b69d01c1f05d0f6209cc138bb
Author: Freja Nordsiek <fnordsie at gmail.com>
Date:   Mon Dec 23 17:13:51 2013 -0500

    Fixed bug in writting MATLAB_int_decode attribute for strings.
---
 hdf5storage/Marshallers.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py
index 1e49b84..17e60f6 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -248,8 +248,8 @@ class NumpyScalarArrayMarshaller(TypeMarshaller):
                 set_attribute_string(grp[name], 'MATLAB_class', '')
 
             if tp in (np.string_, np.unicode):
-                set_attribute(grp[name], 'MATLAB_int_decode',
-                              {np.string_: 2, np.unicode: 4}[tp])
+                set_attribute(grp[name], 'MATLAB_int_decode', np.int64(
+                              {np.string_: 2, np.unicode: 4}[tp]))
             else:
                 del_attribute(grp[name], 'MATLAB_int_decode')
 

-- 
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