[python-hdf5storage] 07/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 1973e2b589ca7b30ab70d6eb623cd10d005739e6
Author: Freja Nordsiek <fnordsie at gmail.com>
Date: Sun Aug 10 18:27:38 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 9025814..a2f9144 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -708,7 +708,7 @@ class NumpyScalarArrayMarshaller(TypeMarshaller):
>= distutils.version.LooseVersion('2.3'):
try:
dt = h5py.special_dtype(vlen=np.dtype('S1'))
- fs = np.empty(shape=(len(fields),), dtype=dt)
+ fs = np.empty(shape=(len(field_names),), dtype=dt)
for i, s in enumerate(field_names):
fs[i] = np.array([c.encode('ascii') for c in s],
dtype='S1')
--
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