Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slashes in dictionary keys #278

Open
lhupe opened this issue Jul 2, 2020 · 1 comment
Open

Slashes in dictionary keys #278

lhupe opened this issue Jul 2, 2020 · 1 comment

Comments

@lhupe
Copy link

lhupe commented Jul 2, 2020

JLD seems to interpret slashes in dictionary keys as a group hierarchy, as demonstrated by this MWE,

using JLD

data = Dict(
    "/foo/bar" => "some data",
    "/foo/baz" => "more data"
)

JLD.save("mwe.jld", data)

data2 = JLD.load("mwe.jld")
println(data2)

which will print

Dict{String,Any}("foo" => Dict{String,Any}("bar" => "some data","baz" => "more data"))

Is this an undocumented feature or a bug?

@lhupe
Copy link
Author

lhupe commented Aug 13, 2020

I noticed that in the docs file, this behaviour is used without explicitely explaining what it does, so I guess this counts as a feature. It'd be nice if it were documented explicitely, because to users without a basic knowledge of HDF5, this might be a bit confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant