ProcessingData#
ProcessingData is the mutable, in-memory workspace shared by all steps in one
pipeline run. It maps stable string names such as sample, background,
calibration, or result to DataBundle objects.
from modacor.dataclasses.processing_data import ProcessingData
processing_data = ProcessingData()
processing_data["sample"] = sample
ProcessStep.calculate() makes authoritative changes directly in this object.
A step’s optional return value is execution bookkeeping; it is not merged into
ProcessingData by the runner.
Keeping intermediate bundles makes changes inspectable and enables partial reruns. The server can retain a previous snapshot, identify steps affected by a changed source or path, and recompute the selected downstream graph.
A processing path such as /sample/signal/uncertainties/Poisson identifies:
the
samplebundle;its
signalBaseDataentry; andthe
Poissonitem in that entry’suncertaintiesmapping.
See Paths, axes, weights, and masks and the glossary for path forms used by sinks and the API.