Skip to main content

preprocessing.merge_chunks

preprocessing.merge_chunks(split, out_root, *, allow_incomplete=False)

Concatenate {split}_chunk*.zarr (written by concurrent :func:export_temporal_cube_chunk SLURM-array tasks) into one {split}.zarr, plus a merged {split}_patch_log.csv.

Chunks without a summary.json are still running or crashed; by default they raise so a half-finished task is not merged by mistake. Pass allow_incomplete=True to merge whatever they hold so far.

Returns the merged store path.