Resume parameter scan and get full scan results

Asked by Al Bee

Hello,

I was running a parameter scan job using the normal `set scan:[1,2,3]` format, but it was unexpectedly interrupted (due to ssh disconnect). I "resumed" the scan in a manual way by simply changing the range of parameters to be scanned over and launching from the same directory; however, after this job completed, the scan_run_[XX-YY].txt file contained only the results for the new scan range.

This behavior is understandable, but is there any way to have this info printed out for the previous runs as well? Or some better way to resume a scan?

I know that I can use print_results after the fact, but it does not include the values of the parameters changing in the scan. This is particularly inconvenient since it was a scan over multiple parameters.

Thanks,
Al

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Sorry I have no smart idea that can help you with this.

Cheers,

Olivier

Revision history for this message
Al Bee (albee12) said :
#2

Well, one idea I had, that maybe you can help me with:
Is there any way to modify the function used to print out these scan results to do this? E.g. by hardcoding the run it should start from.
I looked at the code a little, but it is unclear to me how that param_card_iterator obtains the scan's parameter values and where the param cards are coming from (there's only one param_card (+the default) saved in Cards?)

Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#3

My suggestion,
Would rather to read the information present in the banner of each run of
Events/run_01
and extract the various value that you are interested in and re-create the output file.

Actually if you can figure it out the ordering of the parameter modification, then you should be able to avoid to parse those files.

> I looked at the code a little, but it is unclear to me how that param_card_iterator obtains the scan's parameter values

It reads the param_card that you give it to him and it create a generator to write a new param_card (in Cards directory) which will be used for the computation. In case of crash, the code is smart enough to re-write in the Cards directory the param_card with the scan instructions.

Cheers,

Olivier

Revision history for this message
Al Bee (albee12) said :
#4

Thanks, this is something I thought about, but didn't try yet. It turned out to be easier than expected.

Although, I into two scans to compensate for the partially completed "row" in the 2d scan (one to finish the row and one to resume as a normal 2d), to avoid duplication which would've made the handling of this parameter scan ordering easier.

Revision history for this message
Al Bee (albee12) said :
#5

Thanks Olivier Mattelaer, that solved my question.