hmp publish#

Uses hmp.publish().

$ hmp publish [-h] [-w WORKSPACE] [--dry-run] [--format {table,json,csv}] [--verbosity {quiet,normal,verbose,debug} | -q | -v | --debug] [--to TO] [--container {dir,tar}] [--package] [--without {results,inputs}] [--with {results,inputs,runs,sessions,mesh,fetched}] [--public] [--verify DEST] [REF]

Copy a run, the summary or the project out of the tree, with PUBLICATION.json

ArgumentWhat it does
REFA run (name, id or @-selector), 'summary', or '.' for the whole project. With --package, a project name or a path (default: the project of -w or of the cwd)
--to TODestination: a new directory, or a .tar file
--container CONTAINERWrite a directory or a tar archive (default: dir, tar with --package) one of dir | tar
--packageWrite the project with its data in one package, which 'hmp project import' installs
--without WITHOUTLeave 'results' (fields.zarr, tables.parquet, final_state/) or 'inputs' (every file the run read, with INSTALL.toml) out of a copy; repeatable. A copy takes both by default one of results | inputs
--with WITH_With --package only: take along 'runs' (the sealed runs with their results), 'sessions', 'mesh' (the mesh products the runs cite) or 'fetched' (the files a provider delivered to the runs); repeatable one of results | inputs | runs | sessions | mesh | fetched
--publicMark the copy public. Warn when the project declares no [publication] license or an input has no known licence.
--verify DESTCompare a published copy with its PUBLICATION.json and write nothing

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

Examples

$ hmp publish calibration --to ~/deliverables/my_catchment
$ hmp publish baseline_monthly --to baseline.tar --container tar
$ hmp publish baseline_monthly --to light --without results
$ hmp publish . --to /srv/deliverables/bretagne --public
$ hmp publish my_catchment --package --to my_catchment.tar --with runs --with mesh
$ hmp publish --verify ~/deliverables/my_catchment

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