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

<project>/

-

One project, the root of its runs and sessions.

project.toml

layout.PROJECT_MARKER_FILENAME

The project configuration file, and the marker of a project root.

configs/

layout.CONFIGS_DIRNAME

Reserved sub-directory holding the config variants of a project.

runs/

layout.RUNS_DIRNAME

Directory holding one sub-directory per run at <project>/runs/<name>.

<run>/

-

One run, named after the run itself, with its _vN version suffix.

fields.zarr/

always written

contract.FIELDS_STORE_NAME

Zarr directory store of one run.

tables.parquet/

always written

contract.TABLES_DIRNAME

Directory grouping the Parquet payloads of one run.

<view>.parquet

contract.PARQUET_FILE_SUFFIX

Suffix of a single Parquet payload inside TABLES_DIRNAME.

config.toml

contract.RUN_CONFIG_FILENAME

Frozen configuration of one run: what it was given. A replay reads this file.

config.resolved.toml

contract.RUN_RESOLVED_CONFIG_FILENAME

Whole configuration of one run, defaults written. A replay compares against it.

provenance.json

contract.RUN_PROVENANCE_FILENAME

Environment, versions and git state of one run.

manifest.json

contract.RUN_MANIFEST_FILENAME

Seal of a complete run directory. Absent means the run did not finish.

products.json

contract.RUN_PRODUCTS_FILENAME

The products the run read from the store, one per kind, in first-demand order.

mesh/

contract.MESH_DIRNAME

The mesh product a run seals: mesh.json and mesh.npz of mesh/stored.py.

final_state/

contract.FINAL_STATE_DIRNAME

Zarr 3 group of the last state of a run, in float64 and compressed without loss.

profile.json

contract.RUN_PROFILE_FILENAME

Time and memory of each step, solve, figure and export of one run, hydromodpy.profile.v1.

annotations.json

contract.RUN_ANNOTATIONS_FILENAME

Tags and notes of one run. The one file written after the seal.

figures/

contract.RUN_FIGURES_DIRNAME

Figures rendered for one run.

outcome.json

contract.RUN_OUTCOME_FILENAME

Issue of the current attempt: status, attempt, host, pid, exit code, error.

request.json

contract.RUN_REQUEST_FILENAME

The request of a run given as JSON or as a dict, written at the claim, never redacted.

inputs.json

contract.RUN_INPUTS_FILENAME

Every input the run loaded: provider, product, request, sha256, licence.

README.md

contract.README_FILENAME

Generated reading guide of a run, a session or a summary.

published.jsonl

contract.RUN_PUBLISHED_FILENAME

Where a run was published, one JSON line per copy. Absent until the first one.

purged.json

contract.RUN_PURGED_FILENAME

What gc removed from one kept trial, and when, hydromodpy.purged.v1.

exports/

contract.RUN_EXPORTS_DIRNAME

Deliverables of one run, written by [[export]] requests.

report/

contract.RUN_REPORT_DIRNAME

Rendered report of one run or session.

logs/

contract.RUN_LOGS_DIRNAME

Run log and heartbeat of one run or session.

attempts/

contract.RUN_ATTEMPTS_DIRNAME

Outcome and logs of the earlier attempts of one run, one directory per attempt.

solver/

contract.RUN_SOLVER_DIRNAME

Raw solver folders of one run, kept only under keep_solver_files.

ro-crate-metadata.json

generated_views.RO_CRATE_VIEW_FILENAME

RO-Crate 1.1 metadata. The name is fixed by the RO-Crate specification.

stac-item.json

generated_views.STAC_ITEM_VIEW_FILENAME

STAC 1.0 Item describing the directory as one catalog entry.

prov.jsonld

generated_views.PROV_VIEW_FILENAME

W3C PROV-O lineage as a standalone JSON-LD document.

.zenodo.json

generated_views.ZENODO_VIEW_FILENAME

Zenodo deposit metadata, written when a run is published.

.hmp/

contract.RUN_SCRATCH_ENTRIES

Runtime scratch a live run holds, which is not a result.

sessions/

layout.SESSIONS_DIRNAME

Directory holding calibration and spin-up sessions.

<session>/

-

One calibration or spin-up session.

session.json

contract.SESSION_DESCRIPTOR_FILENAME

Identity, search space, objective, best trial and status of one session or phase.

trials.jsonl

contract.SESSION_TRIALS_FILENAME

Trial journal of one session, appended one JSON object per line as it runs.

trial_series/

contract.SESSION_TRIAL_SERIES_DIRNAME

Per-trial simulated/observed series, one Parquet file per trial.

trial-000001.parquet

contract.session_trial_series_filename

Return the file name of one trial’s series table, sortable by trial number.

.hmp/

layout.INTERNAL_DIRNAME

Rebuildable internals of a project, and the attempt state inside a run directory.

index.duckdb

layout.CATALOG_FILENAME

Project index database living at <project>/.hmp/index.duckdb.

scratch/

scratch.scratch_root_for

Return the folder that holds the scratch folder of every run of a project.

<run>.p<pid>/

scratch.scratch_dir_for

Return the solver working directory of the current run.

_preprocessing/

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

<workspace>/

-

A folder that holds several projects.

workspace.toml

layout.WORKSPACE_TOML_FILENAME

Workspace-wide metadata file living at <workspace>/workspace.toml.

projects/

layout.PROJECTS_DIRNAME

Workspace sub-directory holding one directory per project.

<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

<state>/

portable.state_dir

Return platform state dir (HMP_STATE_HOME override). Set by HMP_STATE_HOME.

<cache>/

portable.cache_dir

Return platform cache dir (HMP_CACHE_HOME override). Set by HMP_CACHE_HOME.

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.