idmtools_calibra.utilities.resume_manager module#

idmtools_calibra.utilities.resume_manager.status_to_iter_step(status: StatusPoint)[source]#
class idmtools_calibra.utilities.resume_manager.ResumeManager(calib_manager: CalibManager, iteration: int | None = None, iter_step: str | None = None, max_iterations: int | None = None, loop: bool = True, backup: bool = False, dry_run: bool = False)[source]#

Bases: object

Manages the creation, execution, and resumption of multi-iteration a calibration suite. Each iteration spawns a new ExperimentManager to configure and commission either local or HPC simulations for a set of random seeds, sample points, and site configurations.

initialize()[source]#
prepare calib_manager and iteration state for resume
  • restore calib_manager

  • restore iteration state

  • validate iteration

  • validate iter_step

resume()[source]#

Call calib_manager.run_iterations to start resume action

check_location()[source]#
  • Handle the case: resume on different environments

  • Handle environment change case: may resume from commission instead

adjust_iteration()[source]#

Validate iteration against latest_iteration return adjusted iteration

adjust_iteration_step()[source]#

Validate iter_step

restore_calib_manager()[source]#

Restore calib_manager

restore_iteration_state()[source]#

Restore IterationState

restore_ll_all()[source]#
backup_calibration()[source]#

Backup CalibManager.json for resume action