Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3io.jl
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
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
common
KM3io.jl
Commits
923c32ab
Verified
Commit
923c32ab
authored
1 year ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Add compression and kwargs to create_dataset
parent
c1518f1b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/hdf5/hdf5.jl
+2
-2
2 additions, 2 deletions
src/hdf5/hdf5.jl
with
2 additions
and
2 deletions
src/hdf5/hdf5.jl
+
2
−
2
View file @
923c32ab
...
...
@@ -78,8 +78,8 @@ the HDF5 dataset will be extended, the buffer written and cleared.
To force the writing, use [`flush`](@ref)
"""
function
HDF5.create_dataset
(
f
::
H5File
,
path
::
AbstractString
,
::
Type
{
T
};
cache_size
=
1000
)
where
T
dset
=
HDF5
.
create_dataset
(
f
.
_h5f
,
path
,
T
,
((
0
,),
(
-
1
,));
chunk
=
(
100
,)
)
function
HDF5.create_dataset
(
f
::
H5File
,
path
::
AbstractString
,
::
Type
{
T
};
cache_size
=
1000
0
,
chunk
=
(
10000
,),
filters
=
[
Filters
.
Deflate
(
5
)],
kwargs
...
)
where
T
dset
=
HDF5
.
create_dataset
(
f
.
_h5f
,
path
,
T
,
((
0
,),
(
-
1
,));
chunk
=
chunk
,
filters
=
filters
,
kwargs
...
)
attrs
(
dset
)[
"struct_name"
]
=
string
(
nameof
(
T
))
cache
=
H5CompoundDatasetCache
(
T
[],
cache_size
)
d
=
H5CompoundDataset
(
dset
,
cache
)
...
...
This diff is collapsed.
Click to expand it.
Tamas Gal
@tgal
mentioned in commit
8f37d782
·
1 year ago
mentioned in commit
8f37d782
mentioned in commit 8f37d78202cb46866658975fd89228cc5693f201
Toggle commit list
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