Skip to content

Is there serialization coming for data structures imported using "ingredients"? #2657

Discussion options

You must be logged in to vote

I actually did not use the rconvert option but directly the jldopen one. I Think I linked the wrong sub-heading in the first comment.
I used code more similar to the one here https://juliaio.github.io/JLD2.jl/dev/advanced/#Explicit-Type-Remapping

So in your case I get you could try something like

UC = ingredients("blah.jl")  ( contains Data{M} )
f = jldopen("example.jld2","r"; typemap=Dict(
    "Main.UC.Data" => UC.Data,
    "Main.UC.SomeOtherType" => UC.SomeOtherType,
))
f["variable"] # This would hopefully work

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MontyTHall
Comment options

@disberd
Comment options

Answer selected by Pangoraw
@MontyTHall
Comment options

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