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

Saving DVecs and restarting long calculations from file #213

Open
joachimbrand opened this issue Aug 19, 2023 · 0 comments
Open

Saving DVecs and restarting long calculations from file #213

joachimbrand opened this issue Aug 19, 2023 · 0 comments

Comments

@joachimbrand
Copy link
Collaborator

Rimu is providing the functions save_dvec and load_dvec for saving DVecs to disk. Apparently the package BSON.jl on newer Julia versions ≥ 1.8. Consequently these function should no longer be used. See https://github.com/joachimbrand/Rimu.jl/blob/8f91d7d2f7b7e36ac349e79ad410ece7404489d6/test/runtests.jl#L93

An alternative would be to use Serialization.serialize or JLD2.jl.

However, we should also think of a mechanism that would allow us to restart longer calculations that ran out of time, crashed due to power cuts or other emergency shutdowns, etc. For this we would need a robust way to save the current state of a long calculation on regular time intervals, and restarting from such data.

A related issue is the saving of metadata for a MC calculation to file. This would be useful for restarting calculations, but could also be useful for automated data analysis and plotting scripts, as the dataframes produced by lomc! currently lack information about most of the calculation parameters.

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