uproot.writing._graphed_write

This module defines uproot.graphed_write, the graphed analogue of uproot.dask_write — and a SPECIALIZATION of the graphed.write partitioned-write base — and uproot.root_write, the same ROOT parts as one write of a graphed.aggregate_plan that also reduces.

Experimental: tracks a pre-1.0 graphed; the API may change without a deprecation cycle.

Like dask_write, it produces one output ROOT file per input partition, written by the same ak_to_root (a TTree through mktree, the same compression names and tree options). The partitions are BLIND (the driver opens no files — each worker resolves its entry range against its own file); each write task evaluates the recorded graph over its chunk, writes {prefix}-{N:05d}.root and reports its part path up the plan’s deterministic combine tree; a step that resolves EMPTY writes no part file. With compute=False the Plan is returned without running; with compute=True (the default) it is executed through a graphed-executors executor.

graphed / graphed_executors are imported lazily, so importing uproot does not require them.