Skip to content
Snippets Groups Projects
Commit e5d4f0b5 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Reinstate fletcher32 & shuffle filters on output datasets

parent a13bf98f
No related branches found
No related tags found
1 merge request!349AGIPD: Fix dtypes and compression in output file
......@@ -262,9 +262,9 @@ class AgipdCorrections:
# so it's efficient to examine the file structure.
for field in image_fields:
arr = data_dict[field][:n_img]
kw = {}
kw = {'fletcher32': True}
if field in compress_fields:
kw.update(compression='gzip', compression_opts=1)
kw.update(compression='gzip', compression_opts=1, shuffle=True)
if arr.ndim > 1:
kw['chunks'] = (1,) + arr.shape[1:] # 1 chunk = 1 image
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment