hmp project#

$ hmp project [-h] <action> ...

Manage the projects of a workspace and plan a [sites] project

CommandWhat it does
hmp project newCreate a new project inside the workspace
hmp project planWrite the plan of a [sites] project: every site crossed with every recipe
hmp project logPrint the journal of the latest launch (--failed: one line per failed case)
hmp project deleteDelete a project directory: its configs, runs, sessions and trash
hmp project listList projects available in a workspace
hmp project importInstall a package written by 'hmp publish --package' as a project of the workspace

hmp project new#

$ hmp project new [-h] [-w WORKSPACE] [--format {table,json,csv}] [--verbosity {quiet,normal,verbose,debug} | -q | -v | --debug] project

Create a new project inside the workspace

ArgumentWhat it does
projectProject name (under projects/)

Also takes the shared options --workspace --format --verbosity --quiet --verbose --debug.

Example

$ hmp project new my_project -w ~/hydromodpy

Exit codes it sets itself: 10. All exit codes.

hmp project plan#

$ hmp project plan [-h] [--format {table,json,csv}] [--verbosity {quiet,normal,verbose,debug} | -q | -v | --debug] [-w WORKSPACE] [--recipe FILE] [--set PATH=VALUE] [--force] [project]

Write the plan of a [sites] project: every site crossed with every recipe

ArgumentWhat it does
projectProject folder or its project.toml (default: -w, else the current directory)
--recipe FILEPlan one recipe file alone on every site, instead of project.toml
--set PATH=VALUEDotted override rendered into every case. Repeatable. The grammar of a key path and a value
--forceGo past the running case: write the plan while a case of the current plan runs

Also takes the shared options --format --verbosity --quiet --verbose --debug --workspace.

Examples

$ hmp project plan .
$ hmp project plan . --recipe calage.toml
$ hmp project plan . --set flow.param.K.field.value=2e-5

Exit codes it sets itself: 14. An exception it does not catch ends with the code of its class. All exit codes.

hmp project log#

$ hmp project log [-h] [--format {table,json,csv}] [--verbosity {quiet,normal,verbose,debug} | -q | -v | --debug] [-w WORKSPACE] [--failed] [--job JOB] [project]

Print the journal of the latest launch (--failed: one line per failed case)

ArgumentWhat it does
projectProject folder or its project.toml (default: -w, else the current directory)
--failedOnly the last end of every case that failed, aborted or went stale
--job JOBA folder under jobs/ (default: the latest launch)

Also takes the shared options --format --verbosity --quiet --verbose --debug --workspace.

Examples

$ hmp project log .
$ hmp project log . --failed
$ hmp project log . --job 20261020-143000-slurm

hmp project delete#

$ hmp project delete [-h] [-w WORKSPACE] [-y] [--dry-run] [--format {table,json,csv}] [--verbosity {quiet,normal,verbose,debug} | -q | -v | --debug] project

Delete a project directory: its configs, runs, sessions and trash

ArgumentWhat it does
projectProject name (directory under projects/)

Also takes the shared options --workspace --yes --dry-run --format --verbosity --quiet --verbose --debug.

Example

$ hmp project delete demo -w ~/hydromodpy -y

Exit codes it sets itself: 2 10 12 130. All exit codes.

hmp project list#

$ hmp project list [-h] [-w WORKSPACE] [--format {table,json,csv}] [--verbosity {quiet,normal,verbose,debug} | -q | -v | --debug]

List projects available in a workspace

Also takes the shared options --workspace --format --verbosity --quiet --verbose --debug.

Example

$ hmp project list -w ~/hydromodpy

Exit codes it sets itself: 10. All exit codes.

hmp project import#

$ hmp project import [-h] [-w WORKSPACE] [--dry-run] [--format {table,json,csv}] [--verbosity {quiet,normal,verbose,debug} | -q | -v | --debug] [--name NAME] source

Install a package written by 'hmp publish --package' as a project of the workspace

ArgumentWhat it does
sourceThe package: a .tar file or a folder
--name NAMEName of the project (default: the name it was exported under)

Also takes the shared options --workspace --dry-run --format --verbosity --quiet --verbose --debug.

Examples

$ hmp project import my_catchment.tar -w ~/hydromodpy
$ hmp project import my_catchment.tar -w ~/hydromodpy --name my_catchment_from_lab

Exit codes it sets itself: 10. All exit codes.