[h5py] 214/455: Workaround for apparent HDF5 bug involving fletcher32

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:34 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 dfeae59b4e6852f85c1666280df4b5a3899a9ade
Author: andrewcollette <andrew.collette at gmail.com>
Date:   Sun Feb 1 01:47:37 2009 +0000

    Workaround for apparent HDF5 bug involving fletcher32
---
 h5py/filters.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/h5py/filters.py b/h5py/filters.py
index e29cf32..f35a711 100644
--- a/h5py/filters.py
+++ b/h5py/filters.py
@@ -113,6 +113,10 @@ def generate_dcpl(shape, dtype, chunks, compression, compression_opts,
         plist.set_chunk(chunks)
         plist.set_fill_time(h5d.FILL_TIME_ALLOC)
 
+    # MUST be first, to prevent 1.6/1.8 compatibility glitch
+    if fletcher32:
+        plist.set_fletcher32()
+
     if shuffle:
         plist.set_shuffle()
 
@@ -124,9 +128,6 @@ def generate_dcpl(shape, dtype, chunks, compression, compression_opts,
         opts = {'ec': h5z.SZIP_EC_OPTION_MASK, 'nn': h5z.SZIP_NN_OPTION_MASK}
         plist.set_szip(opts[szmethod], szpix)
 
-    if fletcher32:
-        plist.set_fletcher32()
-
     return plist
 
 def get_filters(plist):

-- 
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