hmp doctor#

Uses hmp.doctor().

$ hmp doctor [-h] [-w WORKSPACE] [--dry-run] [--format {table,json,csv}] [--cross-catalog] [--lifecycle] [--prt] [--fix-config FILE.toml]

Diagnose the local environment (Python, deps, solvers, workspace)

ArgumentWhat it does
--cross-catalogCross-check the sealed runs on disk against the index of each project
--lifecycleSurface lifecycle issues (stale attempts, abandoned sessions, tmp files)
--prtCheck that the resolved MODFLOW 6 build supports particle tracking (PRT)
--fix-config FILE.tomlRewrite every old key of a TOML and of the files it inherits through base_config under its current name, in place, and print what changed in each file. Preserves comments and layout. A key that still loads warns and names this option. With --dry-run it prints the diff it would write and writes nothing.

Also takes the shared options --workspace --dry-run --format.

Examples

$ hmp doctor
$ hmp doctor -w ~/hydromodpy --format json
$ hmp doctor --fix-config run.toml

The workspace a TOML file resolves to: hmp check run.toml -v

Exit codes it sets itself: 1 2 10 14. All exit codes.