Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OrcaSong
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
Machine Learning
OrcaSong
Commits
c26561db
Commit
c26561db
authored
3 years ago
by
Stefan Reck
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
889eb819
No related branches found
No related tags found
1 merge request
!27
Adjust chunks
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
orcasong/tools/postproc.py
+4
-3
4 additions, 3 deletions
orcasong/tools/postproc.py
with
4 additions
and
3 deletions
orcasong/tools/postproc.py
+
4
−
3
View file @
c26561db
...
...
@@ -2,8 +2,6 @@
Scripts for postprocessing h5 files, e.g. shuffling.
"""
import
os
import
argparse
import
warnings
import
h5py
import
km3pipe
as
kp
...
...
@@ -64,6 +62,9 @@ def postproc_file(
# which has the name 'zlib' for the 'gzip' filter
if
comptopts
[
"
complib
"
]
==
"
gzip
"
:
comptopts
[
"
complib
"
]
=
"
zlib
"
# chunksize must be the same for all dsets using hdf5sink; use the one
# from the first dataset
chunksize
=
list
(
comptopts
[
"
chunksize
"
].
values
())[
0
]
pipe
=
kp
.
Pipeline
()
if
statusbar_every
is
not
None
:
...
...
@@ -82,7 +83,7 @@ def postproc_file(
filename
=
output_file
,
complib
=
comptopts
[
"
complib
"
],
complevel
=
comptopts
[
"
complevel
"
],
chunksize
=
comptopts
[
"
chunksize
"
]
,
chunksize
=
chunksize
,
flush_frequency
=
1000
,
)
pipe
.
drain
()
...
...
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