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

Make mode "r" default for H5File

parent 09d4c4b0
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ struct H5File
_h5f::HDF5.File
_datasets::Dict{String, H5CompoundDataset}
function H5File(fname::AbstractString, mode="w")
function H5File(fname::AbstractString, mode="r")
h5f = h5open(fname, mode)
new(h5f, Dict{String, H5CompoundDataset}())
end
......
......@@ -11,7 +11,7 @@ end
fname = tempname()
bars = [Bar(x, x*2.1) for x 1:100]
f = H5File(fname)
f = H5File(fname, "w")
d = create_dataset(f, "bars", Bar; cache_size=3)
for bar bars
push!(d, bar)
......
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