[python-hdf5storage] 07/152: Fixed error in detection of whether an overwrite is needed based on shape and type information.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:24:29 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 2ffa81461cbeae68d891d15f7894d195b634504d
Author: Freja Nordsiek <fnordsie at gmail.com>
Date: Mon Dec 23 14:51:53 2013 -0500
Fixed error in detection of whether an overwrite is needed based on shape and type information.
---
hdf5storage/Marshallers.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py
index 3b30941..1e49b84 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -178,8 +178,8 @@ class NumpyScalarArrayMarshaller(TypeMarshaller):
grp.create_dataset(name, data=data_to_store,
**options.array_options)
elif not isinstance(grp[name], h5py.Dataset) \
- or grp[name].dtype != data.dtype \
- or grp[name].shape != data.shape:
+ or grp[name].dtype != data_to_store.dtype \
+ or grp[name].shape != data_to_store.shape:
del grp[name]
grp.create_dataset(name, data=data_to_store,
**options.array_options)
--
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