+221 KiB
Loading image diff...
+165
−0
Loading
Pseudocode of the unified back-end's top function signature plus
its typed value objects. Shows:
- Main function: reduce(workspace, configuration, direct_beam=None,
output_dir=None, *, write_quicknxs=True, ...) -> ReducedRun.
Inside: inspect → build_mrr_kwargs (one place) → MRR →
ReducedRun.
- ReductionConfig dataclass (frozen): PixelRange typed ROIs, proper
BinningType enum, AngleSource enum that kills the use_dangle
inversion.
- ReducedRun value object: q, r, dr, dq numpy arrays + per-
cross-section curves + DataInfo.
- "What this replaces" red callout enumerating six items removed
by the contract.
- Two caller examples at bottom (quicknxsv2 GUI · mr_reduction
autoreduce) showing that both hit the same function.
Supports Day-3 requirements document and Day-4 ticket drafting.
Co-Authored-By:
Claude Opus 4.7 (1M context) <noreply@anthropic.com>