hydromodpy.results.catalog#
Catalog facade for the results layer.
Central registry for finished simulations. Backed by DuckDB for tabular state and by Zarr / Parquet for field arrays and timeseries written under the workspace.
Public API#
SimulationCatalog: connection-managed entry point. Methods cover registration (register_simulation), per-simulation writers (write_parameters,write_timeseries,write_budget,write_field,write_mesh…), readers / queries (query_field,query_timeseries,list_simulations,sql), reference resolution (resolve,__getitem__,find,latest,best), and lifecycle helpers (finalize,cleanup,export_package,import_package,delete).RegistrationResult: dataclass returned byregister_simulation.Errors:
SimulationNotFoundError,AmbiguousReferenceError,DuplicateSimulationNameError.short_id(): Git-style short identifier (first 8 hex chars).
Modules
Concrete |
|
Audit log writer for catalog events. |
|
Catalog constants and small solver helpers. |
|
Cross-DB helpers federating the project catalog with the data cache. |
|
Catalog-wide ML/DL dataset loader. |
|
Reference resolution and Run/Group discovery. |
|
Catalog facade composing every concern mixin. |
|
Simulation lifecycle helpers (open / finalize / delete / cleanup / close). |
|
Catalog DuckDB schema migrations. |
|
|
|
Parquet-backed DuckDB view helpers for per-simulation tabular outputs. |
|
Storage backend Protocol for the catalog. |
|
SimulationStore Protocol for result-catalog backends. |
|
Read-side queries against the catalog. |
|
Simulation registration into the catalog. |
|
Self-documenting schema accessors for |
|
Filesystem path resolution for catalog artefacts. |
|
Materialised DuckDB views used by the catalog read path. |
|
Per-simulation write operations. |
|
DuckDB write concern for |
|
Shared helpers for the WritesMixin concern split. |
|
Parquet write concern for |
|
Zarr write concern for |