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

Avoid overwriting history file on resume #222

Open
AngelFP opened this issue Jun 11, 2024 · 0 comments
Open

Avoid overwriting history file on resume #222

AngelFP opened this issue Jun 11, 2024 · 0 comments

Comments

@AngelFP
Copy link
Member

AngelFP commented Jun 11, 2024

When resuming an Exploration, the history file will be read and then modified to incorporate new evaluations from the resumed run. However, this behavior can have unwanted consequences if the resumed run has any issue and is cancelled, for example. The user would then want to resume again from the first run, but the history would already contain data from the previous failed resume.

See this comment, for example:

I could resume the optimization with changes in the parameters range with no problem. However, I realized that I wanted to use fit_out_of_design=True (instead of the default, which is False). So I canceled the run and started over. This time the history file was different and contained the cancelled simulations from the previous resume attempt. I had to remove manually these entries from the history file, rename it and revert the changes in the parameters ranges in exploration_parameters.json to start over adequately.

I wonder if it would be a good idea to backup automatically the history file from which the exploration run is resuming. Previous versions had a feature like this if I recall well.

Originally posted by @delaossa in #185 (comment)

We should therefore investigate the option of not overwriting the history file on resume, either by keeping a copy of the original one or by using a different name for the history with resume.

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