[python-hdf5storage] 76/152: Fixed bug in decoding 3d and higher dimensionality arrays of numpy string types when encoded as uints.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:24:36 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 1b3f53e2ef98bc20758ff8e170e2ba0289402044
Author: Freja Nordsiek <fnordsie at gmail.com>
Date: Sun Feb 2 00:18:47 2014 -0500
Fixed bug in decoding 3d and higher dimensionality arrays of numpy string types when encoded as uints.
---
hdf5storage/utilities.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hdf5storage/utilities.py b/hdf5storage/utilities.py
index db0ba1d..8daeb31 100644
--- a/hdf5storage/utilities.py
+++ b/hdf5storage/utilities.py
@@ -226,7 +226,7 @@ def decode_to_numpy_unicode(data, length=None):
if length is None:
length = shape[1]
new_shape = shape.copy()
- new_shape[1] //= length
+ new_shape[-1] //= length
# The new array can be made as all zeros (nulls) with enough
# padding to hold everything (dtype='UL' where 'L' is the
@@ -357,7 +357,7 @@ def decode_to_numpy_ascii(data, length=None):
if length is None:
length = shape[1]
new_shape = shape.copy()
- new_shape[1] //= length
+ new_shape[-1] //= length
# The new array can be made as all zeros (nulls) with enough
# padding to hold everything (dtype='UL' where 'L' is the
--
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