ChunkPlan

class of dascore.utils.chunk_plan source

ChunkPlan(
    outputs: DataFrame ,
    members: DataFrame ,
    dim: str ,
    value: Any ,
    params: <class ’dict = ,
    trim_dims: tuple[str, …] = (),
)-> None

A materialization-free description of a chunk operation.

Attributes

Parameter Description
outputs One row per output patch: {dim}_min/max/step for the chunked
dimension, an output_id, and all carried columns (group attrs,
dims, structural def keys, conflict-policed attrs).
members Instruction rows binding outputs to sources: output_id,
_patch_row, the exact {dim}_min/max trim for that member, and
_modified (False when the member loads whole). A chunk plan’s
members also say why each starts where it does
(reason), how far its stretch’s grid moved its labels (shift,
in steps) and how many samples an earlier patch’s overlap dropped
from it (dropped); a member of a stretch whose grid relabels it
carries its output’s slice of that grid (_{dim}_stretch).
dim The chunked dimension.
value The requested chunk length (None for merge mode).
params Resolved parameters (group attrs, tolerances, max_shift, overlap,
keep_partial, conflict, on_missing_dim) — recorded, not referencing
config.
trim_dims Dimensions besides dim a window plan trims (in {dim}_min/max).