[python-hdf5storage] 06/84: Fixed bug in MATLAB_fields Attribute generation for NumpyScalarArrayMarshaller.

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


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

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

commit 6e31b5821c468e4821517b4693dca8a21c368d3f
Author: Freja Nordsiek <fnordsie at gmail.com>
Date:   Sun Aug 10 18:23:24 2014 -0400

    Fixed bug in MATLAB_fields Attribute generation for NumpyScalarArrayMarshaller.
---
 hdf5storage/Marshallers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py
index 76456ca..9025814 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -709,7 +709,7 @@ class NumpyScalarArrayMarshaller(TypeMarshaller):
                 try:
                     dt = h5py.special_dtype(vlen=np.dtype('S1'))
                     fs = np.empty(shape=(len(fields),), dtype=dt)
-                    for i, s in enumerate(fields):
+                    for i, s in enumerate(field_names):
                         fs[i] = np.array([c.encode('ascii') for c in s],
                                          dtype='S1')
                 except UnicodeDecodeError:

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