Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
e5d4f0b5
Commit
e5d4f0b5
authored
4 years ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
Reinstate fletcher32 & shuffle filters on output datasets
parent
a13bf98f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!349
AGIPD: Fix dtypes and compression in output file
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cal_tools/cal_tools/agipdlib.py
+2
-2
2 additions, 2 deletions
cal_tools/cal_tools/agipdlib.py
with
2 additions
and
2 deletions
cal_tools/cal_tools/agipdlib.py
+
2
−
2
View file @
e5d4f0b5
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment