[h5py] 296/455: Fix chunk loop failure for invalid input
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.
commit ebb780f1caa75aabbe69f91439663b0ee6120350
Author: andrewcollette <andrew.collette at gmail.com>
Date: Wed Jul 15 18:30:21 2009 +0000
Fix chunk loop failure for invalid input
---
h5py/filters.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/h5py/filters.py b/h5py/filters.py
index 693d0cf..a70f666 100644
--- a/h5py/filters.py
+++ b/h5py/filters.py
@@ -213,6 +213,8 @@ def guess_chunk(shape, typesize):
raise ValueError("Chunks not allowed for scalar datasets.")
chunks = np.array(shape, dtype='=f8')
+ if not np.all(np.isfinite(chunks)):
+ raise ValueError("Illegal value in chunk tuple")
# Determine the optimal chunk size in bytes using a PyTables expression.
# This is kept as a float.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git
More information about the debian-science-commits
mailing list