Storage tree#
Built from hydromodpy/results/storage/contract.py, hydromodpy/core/state/layout.py and hydromodpy/schema/generated_views.py each time the site is built. Fix a wrong row there.
Each name below is a constant or a path helper of one of these modules, named as <module>.<name>; the meaning is its docstring. The tables list the entries in the order of the tree. tests/unit/results/test_run_layout_contract.py checks a real run against the same constants.
Project#
A run directory may hold only the entries listed under <run>/.
<project>/
project.toml
configs/
runs/
<run>/
fields.zarr/
tables.parquet/
<view>.parquet
config.toml
config.resolved.toml
provenance.json
manifest.json
products.json
mesh/
final_state/
profile.json
annotations.json
figures/
outcome.json
request.json
inputs.json
README.md
published.jsonl
purged.json
exports/
report/
logs/
attempts/
solver/
ro-crate-metadata.json
stac-item.json
prov.jsonld
.zenodo.json
.hmp/
sessions/
<session>/
session.json
trials.jsonl
trial_series/
trial-000001.parquet
.hmp/
index.duckdb
scratch/
<run>.p<pid>/
_preprocessing/
Entry |
Declared by |
Meaning |
|---|---|---|
|
- |
One project, the root of its runs and sessions. |
|
layout.PROJECT_MARKER_FILENAME |
The project configuration file, and the marker of a project root. |
|
layout.CONFIGS_DIRNAME |
Reserved sub-directory holding the config variants of a project. |
|
layout.RUNS_DIRNAME |
Directory holding one sub-directory per run at |
|
- |
One run, named after the run itself, with its |
always written |
contract.FIELDS_STORE_NAME |
Zarr directory store of one run. |
always written |
contract.TABLES_DIRNAME |
Directory grouping the Parquet payloads of one run. |
|
contract.PARQUET_FILE_SUFFIX |
Suffix of a single Parquet payload inside |
|
contract.RUN_CONFIG_FILENAME |
Frozen configuration of one run: what it was given. A replay reads this file. |
|
contract.RUN_RESOLVED_CONFIG_FILENAME |
Whole configuration of one run, defaults written. A replay compares against it. |
|
contract.RUN_PROVENANCE_FILENAME |
Environment, versions and git state of one run. |
|
contract.RUN_MANIFEST_FILENAME |
Seal of a complete run directory. Absent means the run did not finish. |
|
contract.RUN_PRODUCTS_FILENAME |
The products the run read from the store, one per kind, in first-demand order. |
|
contract.MESH_DIRNAME |
The mesh product a run seals: |
|
contract.FINAL_STATE_DIRNAME |
Zarr 3 group of the last state of a run, in float64 and compressed without loss. |
|
contract.RUN_PROFILE_FILENAME |
Time and memory of each step, solve, figure and export of one run, |
|
contract.RUN_ANNOTATIONS_FILENAME |
Tags and notes of one run. The one file written after the seal. |
|
contract.RUN_FIGURES_DIRNAME |
Figures rendered for one run. |
|
contract.RUN_OUTCOME_FILENAME |
Issue of the current attempt: status, attempt, host, pid, exit code, error. |
|
contract.RUN_REQUEST_FILENAME |
The request of a run given as JSON or as a dict, written at the claim, never redacted. |
|
contract.RUN_INPUTS_FILENAME |
Every input the run loaded: provider, product, request, sha256, licence. |
|
contract.README_FILENAME |
Generated reading guide of a run, a session or a summary. |
|
contract.RUN_PUBLISHED_FILENAME |
Where a run was published, one JSON line per copy. Absent until the first one. |
|
contract.RUN_PURGED_FILENAME |
What |
|
contract.RUN_EXPORTS_DIRNAME |
Deliverables of one run, written by |
|
contract.RUN_REPORT_DIRNAME |
Rendered report of one run or session. |
|
contract.RUN_LOGS_DIRNAME |
Run log and heartbeat of one run or session. |
|
contract.RUN_ATTEMPTS_DIRNAME |
Outcome and logs of the earlier attempts of one run, one directory per attempt. |
|
contract.RUN_SOLVER_DIRNAME |
Raw solver folders of one run, kept only under |
|
generated_views.RO_CRATE_VIEW_FILENAME |
RO-Crate 1.1 metadata. The name is fixed by the RO-Crate specification. |
|
generated_views.STAC_ITEM_VIEW_FILENAME |
STAC 1.0 Item describing the directory as one catalog entry. |
|
generated_views.PROV_VIEW_FILENAME |
W3C PROV-O lineage as a standalone JSON-LD document. |
|
generated_views.ZENODO_VIEW_FILENAME |
Zenodo deposit metadata, written when a run is published. |
|
contract.RUN_SCRATCH_ENTRIES |
Runtime scratch a live run holds, which is not a result. |
|
layout.SESSIONS_DIRNAME |
Directory holding calibration and spin-up sessions. |
|
- |
One calibration or spin-up session. |
|
contract.SESSION_DESCRIPTOR_FILENAME |
Identity, search space, objective, best trial and status of one session or phase. |
|
contract.SESSION_TRIALS_FILENAME |
Trial journal of one session, appended one JSON object per line as it runs. |
|
contract.SESSION_TRIAL_SERIES_DIRNAME |
Per-trial simulated/observed series, one Parquet file per trial. |
|
contract.session_trial_series_filename |
Return the file name of one trial’s series table, sortable by trial number. |
|
layout.INTERNAL_DIRNAME |
Rebuildable internals of a project, and the attempt state inside a run directory. |
|
layout.CATALOG_FILENAME |
Project index database living at |
|
scratch.scratch_root_for |
Return the folder that holds the scratch folder of every run of a project. |
|
scratch.scratch_dir_for |
Return the solver working directory of the current run. |
|
scratch.PREPROCESSING_DIRNAME |
Folder of the geographic, data and mesh preprocessing, inside a run’s scratch. |
Workspace#
A workspace groups projects.
<workspace>/
workspace.toml
projects/
<project>/
Entry |
Declared by |
Meaning |
|---|---|---|
|
- |
A folder that holds several projects. |
|
layout.WORKSPACE_TOML_FILENAME |
Workspace-wide metadata file living at |
|
layout.PROJECTS_DIRNAME |
Workspace sub-directory holding one directory per project. |
|
- |
One project, laid out as above. |
Machine#
Folders outside any project, shared by every project of the machine.
<state>/
<cache>/
Entry |
Declared by |
Meaning |
|---|---|---|
|
portable.state_dir |
Return platform state dir (HMP_STATE_HOME override). Set by |
|
portable.cache_dir |
Return platform cache dir (HMP_CACHE_HOME override). Set by |
Storage layers#
Where each kind of result is stored.
Layer |
Scope |
Path |
Role |
|---|---|---|---|
catalog |
project |
<project>/.hmp/index.duckdb |
Project-level DuckDB index for runs, metadata, metrics, and provenance. |
zarr |
run |
<project>/runs/<run>/fields.zarr |
Per-run array store for meshes, spatial fields, forcings, and rasters. |
parquet |
run |
<project>/runs/<run>/tables.parquet/<view>.parquet |
Per-run tabular payloads exposed through DuckDB views. |