JuliaIO / JLD2.jl

HDF5-compatible file format in pure Julia
Other
553 stars 88 forks source link

How to print or show every group name of a JLD2 file #553

Closed crazyfireji closed 6 months ago

crazyfireji commented 6 months ago

I open a JLD2 file and want to read it, but I forgot the name of the group, How to show all of the group[ name of the file image

JonasIsensee commented 6 months ago

Try

julia> f = jldopen("test.jld2")
JLDFile /test.jld2 (read-only)
 └─🔢 foo

julia> keys(f)
1-element Vector{String}:
 "foo"
crazyfireji commented 6 months ago

Try

julia> f = jldopen("test.jld2")
JLDFile /test.jld2 (read-only)
 └─🔢 foo

julia> keys(f)
1-element Vector{String}:
 "foo"

Thank you very much!!!