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

Function initialize_cp #12

Open
thednainus opened this issue Nov 2, 2021 · 1 comment
Open

Function initialize_cp #12

thednainus opened this issue Nov 2, 2021 · 1 comment

Comments

@thednainus
Copy link

Hello,

I would suggest to replace the line https://github.com/EpiModel/EpiModelHPC/blob/master/R/initialize_cp.R#L31

to x$control$start <- control$start

The reason for that is because EpiModel add several other "variables" to the control object. If I replace x$control to control, I will miss what was added to x$control, and then checkpoint will fail to restart for several reasons.

Cheers,
Fabricia.

@AdrienLeGuillou
Copy link
Member

Hi @thednainus,

sorry for the (very) late answer. We just finished the implementation of a checkpointing system inside core netsim. We made a lot of changes to netsim over the past year and instead of porting them to netsim_hpc we merged everything in netsim.

For the new checkpointing system, here is documentation on our wiki here, and also in EpiModel's control.net function documentation. This will work with any way you call netsim. I has also built functionality for this to be used in his new slurmworkflow approach. (links in wiki as well)

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

2 participants