hmp calibrate#
Uses hmp.calibrate().
$ hmp calibrate [-h] [-w WORKSPACE] [--format {table,json,csv}] [--profile [HTML_PATH]] [--verbosity {quiet,normal,verbose,debug} | -q | -v | --debug] [--phase PHASE] [--resume] [--dry-run] [--no-report] [--list-phases] [--expand] [--case NAME] [--overlay OVERLAY] [--set PATH=VALUE] [--credentials PATH] [--allow-host HOST] [--max-download-bytes N] configRun a calibration from a TOML config
| Argument | What it does |
|---|---|
config | Path to a calibration TOML file |
--phase PHASE | Run only this phase of a staged calibration, in the session of the case. Its dependency must have completed there, otherwise the phase would calibrate against un-frozen parameters. |
--resume | Reopen the latest session of the case: the phases that completed with the same fingerprint are read back, the cut phase is solved again with its trials preloading the cache. |
--dry-run | Say which case, which session folder and which phases would run, and write nothing. |
--no-report | Do not write the report of each session once the search is over. hmp show SESSION --report writes it later. |
--list-phases | List the declared phases and exit without running anything. A file without phases gets one line for its single search. |
--expand | Print the [calibration] section a protocol writes, as TOML, and exit without running anything. A file naming no protocol prints its own section. Refused together with --phase, --list-phases, --resume or --dry-run. |
--case NAME | Name of the case: its session is sessions/<name>. Defaults to [simulation] name, else the stem of the TOML. A calibration launched with --set or --overlay keeps that name; use --case to name the variant. |
Also takes the shared options --workspace --format --profile --verbosity --quiet --verbose --debug --overlay --set --credentials --allow-host --max-download-bytes.
Examples
$ hmp calibrate calibration.toml $ hmp calibrate calibration.toml --dry-run $ hmp calibrate calibration.toml --resume $ hmp calibrate calibration.toml --list-phases $ hmp calibrate calibration.toml --resume --phase phase_name $ hmp calibrate calibration.toml --expand $ hmp calibrate calibration.toml --set calibration.seed=7 $ hmp calibrate calibration.toml --overlay daily.toml --case calage_daily $ hmp calibrate calibration.toml --format json
Every launch, --dry-run included, runs the checks of hmp check calibration.toml before anything is prepared. --format json prints the result, the phases or the plan once the command is over, as the page on what a program reads describes them.
Exit codes it sets itself: 2 10 14 21. All exit codes.