[python-hdf5storage] 09/13: Fixed bug in writing numpy chararrays when matlab metadata is included (error comes from conversions).
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:25:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 0.1.12
in repository python-hdf5storage.
commit 5bb8dd82f18ca4424d57bcf2a41baaef40203501
Author: Freja Nordsiek <fnordsie at gmail.com>
Date: Sat Feb 13 21:27:27 2016 +0100
Fixed bug in writing numpy chararrays when matlab metadata is included (error comes from conversions).
---
hdf5storage/Marshallers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py
index 8ee56cf..8454934 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -590,7 +590,7 @@ class NumpyScalarArrayMarshaller(TypeMarshaller):
data_to_store = np.uint16([])
else:
data_to_store = np.uint16(np.atleast_1d( \
- data_to_store).view(np.uint8))
+ data_to_store).view(np.ndarray).view(np.uint8))
if np.any(data_to_store >= 128):
raise NotImplementedError( \
'Can''t write non-ASCII numpy.bytes_.')
--
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