hmp project#
$ hmp project [-h] <action> ...Manage the projects of a workspace and plan a [sites] project
| Command | What it does |
|---|---|
hmp project new | Create a new project inside the workspace |
hmp project plan | Write the plan of a [sites] project: every site crossed with every recipe |
hmp project log | Print the journal of the latest launch (--failed: one line per failed case) |
hmp project delete | Delete a project directory: its configs, runs, sessions and trash |
hmp project list | List projects available in a workspace |
hmp project import | Install 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] projectCreate a new project inside the workspace
| Argument | What it does |
|---|---|
project | Project name (under projects/) |
Also takes the shared options --workspace --format --verbosity --quiet --verbose --debug.
Example
$ hmp project new my_project -w ~/hydromodpyExit 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
| Argument | What it does |
|---|---|
project | Project folder or its project.toml (default: -w, else the current directory) |
--recipe FILE | Plan one recipe file alone on every site, instead of project.toml |
--set PATH=VALUE | Dotted override rendered into every case. Repeatable. The grammar of a key path and a value |
--force | Go 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)
| Argument | What it does |
|---|---|
project | Project folder or its project.toml (default: -w, else the current directory) |
--failed | Only the last end of every case that failed, aborted or went stale |
--job JOB | A 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] projectDelete a project directory: its configs, runs, sessions and trash
| Argument | What it does |
|---|---|
project | Project 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 -yExit 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 ~/hydromodpyExit 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] sourceInstall a package written by 'hmp publish --package' as a project of the workspace
| Argument | What it does |
|---|---|
source | The package: a .tar file or a folder |
--name NAME | Name 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.