Is there serialization coming for data structures imported using "ingredients"? #2657
-
Looks like importing is a bit of a hassle and I'm pointed to instruction to create an "ingredients" function to import code. The problem is that I use this library to generate data. I simply am unable to serialize or deserialize. Are there plans to rectify this? I've tried Michael Heatherly's PlutoSerialize but for some reason it too doesn't like serializing data structures that are loaded via "ingredients". Sample pluto code: SOMELIB = ingredients("blah.jl") import FileIO Or is there another way to serialize "someData" that was loaded by "ingredient" or has "ingredients been replaced"? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Have you looked at using the typemap kwarg to the load function? I stumbled upon this problem (though not with ingredients) and using typemap solved the problem for me |
Beta Was this translation helpful? Give feedback.
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