[python-hdf5storage] 64/84: Fixed bug where the 'MATLAB_class' Attribute is not set when writing dicts.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:25:05 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 ab15800c63fbcdd51ce892f78ef81410b0d33e51
Author: Freja Nordsiek <fnordsie at gmail.com>
Date: Sat Aug 22 12:25:48 2015 -0400
Fixed bug where the 'MATLAB_class' Attribute is not set when writing dicts.
---
hdf5storage/Marshallers.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py
index 8a5820c..ecca431 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -1561,10 +1561,9 @@ class PythonDictMarshaller(TypeMarshaller):
# the attributes need to be deleted.
tp = type(data)
- if options.matlab_compatible and tp in self.types \
- and self.types.index(tp) in self.__MATLAB_classes:
- set_attribute_string(grp[name], 'MATLAB_class', \
- self.__MATLAB_classes[self.types.index(tp)])
+ if options.matlab_compatible and tp in self.__MATLAB_classes:
+ set_attribute_string(grp[name], 'MATLAB_class',
+ self.__MATLAB_classes[tp])
else:
del_attribute(grp[name], 'MATLAB_class')
--
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