hydromodpy.results.catalog.storage_paths#

Filesystem path resolution for catalog artefacts.

A simulation’s on-disk state lives at simulations/<basename>.zarr and simulations/<basename>.parquet where <basename> is built from the simulation’s (project, name, sim_id) so a plain ls is human readable. Older workspaces written before this scheme used the bare sim_id as the basename; ensure_schema back-fills storage_basename with that raw sim_id so the resolver can read the column unconditionally.

Functions

build_storage_basename(project, name, sim_id)

Build the on-disk basename for a simulation's Zarr / Parquet folder.

sanitize_segment(value, *[, max_len])

Return a filesystem-safe lowercase slug from an arbitrary string.

short_uuid(sim_id)

Return the first SHORT_ID_LEN hex characters of sim_id.

Classes

StoragePathResolver(backend, simulations_dir)

Resolve and cache on-disk paths for a simulation's artefacts.