Skip to content
Snippets Groups Projects
Verified Commit efa2db8f authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix HDF5 example

parent 0fe6107e
No related branches found
No related tags found
1 merge request!15DAQ tools
......@@ -14,7 +14,7 @@ using Random
Random.seed!(23) # to make things reproducible ;)
f = H5File("foo.h5")
f = H5File("foo.h5"; mode="w")
```
We now have an `H5File` instance which we can use to store datasets.
......
......@@ -40,7 +40,7 @@ struct H5File
_h5f::HDF5.File
_datasets::Dict{String, H5CompoundDataset}
function H5File(fname::AbstractString, mode="r")
function H5File(fname::AbstractString; mode="r")
h5f = h5open(fname, mode)
if mode != "r"
if "KM3io.jl" keys(attrs(h5f))
......
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