bankofcanada / StateSpaceEcon.jl

BSD 3-Clause "New" or "Revised" License
49 stars 9 forks source link

Bug when we load plan after save it in JLD2 format #15

Closed mariusmjp closed 2 years ago

mariusmjp commented 4 years ago

Hi,

I noticed an issue when I tried to save plan in JLD2 and reload it after (please see the following snapshot). plan_save_and_load

bbejanov commented 4 years ago

Look at this discussion: https://discourse.julialang.org/t/a-future-for-jld2/42958/37 The future of JLD2 is uncertain. Do you still think that using JLD2 is a good idea?

mariusmjp commented 4 years ago

Yes I also see the same concern before but the question is which format we should use ? Because it seems all pre-existing format have some limitation and it seems JLD2 is the most faster: https://discourse.julialang.org/t/a-future-for-jld2/42958 see the first comment in the forum. Also when I go to repository of JLD2 it seems the package is activate again after a really long pause please see read me at https://github.com/JuliaIO/JLD2.jl but I'm agree with you the future seem uncertain.

RoyCCWang commented 2 years ago

Sorry for reviving this thread. Would BSON.jl work for your application? It also save closures/anonymous functions. Some idiosyncrasies:

bbejanov commented 2 years ago

I'm not sure that we'll ever support JLD2 or any other format for plans. As of f2d962022c69ddc3b1b9e9b4b5aacfff140fc4d4 we now have importplan and exportplan, which use a text format so that plans with the same model and range can also be compared visually with plain diff.