hmp workspace#

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

Scaffold, list and clean a workspace

CommandWhat it does
hmp workspace initScaffold a HydroModPy workspace (data + projects). Default: ~/hydromodpy/
hmp workspace listList the sealed runs of every project under a workspace, from their directories
hmp workspace cleanTrash the results of a workspace and remove its rebuildable caches

hmp workspace init#

$ hmp workspace init [-h] [-w WORKSPACE] [--format {table,json,csv}] [--force] [--project-name PROJECT_NAME] [--creator-name CREATOR_NAME] [--creator-email CREATOR_EMAIL] [path]

Scaffold a HydroModPy workspace (data + projects). Default: ~/hydromodpy/

ArgumentWhat it does
pathWorkspace path, or give it with -w
--forceGo past the refusal: reuse a workspace that exists
--project-name PROJECT_NAMEProject name written to workspace.toml (default: the workspace folder name)
--creator-name CREATOR_NAMECreator name written to workspace.toml
--creator-email CREATOR_EMAILCreator e-mail written to workspace.toml

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

Examples

$ hmp workspace init ~/hydromodpy
$ hmp workspace init ./ws --project-name my_project

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

hmp workspace list#

$ hmp workspace list [-h] [-w WORKSPACE] [--format {table,json,csv}] [path]

List the sealed runs of every project under a workspace, from their directories

ArgumentWhat it does
pathWorkspace or project root (default: -w, else the current directory)

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

Examples

$ hmp workspace list
$ hmp workspace list ~/hydromodpy --format json
$ hmp workspace list -w ~/hydromodpy/projects/demo

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

hmp workspace clean#

$ hmp workspace clean [-h] [-w WORKSPACE] [-y] [--dry-run] [--format {table,json,csv}] [--all] [--results] [--data-cache] [--runtime] [--scratch] [--force]

Trash the results of a workspace and remove its rebuildable caches

ArgumentWhat it does
-y, --yesCarry the plan out. Without it the verb prints the plan and changes nothing
--allClean every group below
--resultsMove every run and session to the trash of its project, remove the index
--data-cachedata/blobs and the data cache database that a pre-release left in data/
--runtimeThe .hmp/ runtime folder
--scratchThe scratch folders (.hmp/scratch)
--forceWith --results: go past the pin and the stale attempt, and trash those runs too

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

Examples

$ hmp workspace clean --results --dry-run
$ hmp workspace clean --all -y

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