hydromodpy.results.zarr_store.zarr_finalizer#
Finalization concerns for SimulationZarr.
Owns lifecycle: write-lock acquisition, consolidate_metadata,
pack_to_zip (directory store -> .zarr.zip), and close.
All helpers take the live SimulationZarr (or its store/lock)
explicitly so the module stays free of hidden global state.
Functions
|
Close the live store and invoke any on-close callback. |
|
Consolidate Zarr metadata into a single |
|
Return a context manager that holds the cross-process filelock. |
|
Compact the directory-based Zarr store into a |
Classes
|
No-op lock used for zip stores (read-only by construction). |