Repository navigation
Add compact tile-row storage for xRay detector spectra - #75
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Repository: NVIDIA/cuPhoton/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: π Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review. π WalkthroughWalkthroughDetector artifacts now support compact ChangesDetector artifact layouts
Priority: β Normal Merge Risk: βͺ Minimal Β· up to No actionable merge-blocking risk was identified in the reviewed layout changes. Normal checks remain appropriate before merging. π₯ Pre-merge checks | β 2β Passed checks (2 passed)
Comment |
04da46b to
63d01a5
Compare
|
@coderabbitai review |
|
melo-gonzo
left a comment
There was a problem hiding this comment.
LGTM. All 117 selected storage, artifact and distributed tests passed on RTX 6000 Ada, including byte-exact dense/compact parity for a nonzero crop and partial tiles. Suitable as an optional 0.1.3 inclusion; dense output remains the default.
Store each fitted spectrum once per x tile with an opt-in layout. Read logical pixel slices without expanding the whole detector cube, and preserve compact storage through shard merges. Keep dense output as the default and support both layouts in comparison, visualization, and resume checks. Signed-off-by: Trent Nelson <trentn@nvidia.com>
Signed-off-by: Trent Nelson <trentn@nvidia.com>
Document explicit CLI and Python storage choices and retain dense output for compatibility with existing NumPy consumers. Cover worker command propagation and resume invalidation when the layout changes. Signed-off-by: Trent Nelson <trentn@nvidia.com>
Show explicit layout choices in producer CLI and Python examples. Explain logical filenames, bounded ROI reads, and the storage versus full-expansion tradeoff for compact spectra. Signed-off-by: Trent Nelson <trentn@nvidia.com>
Require explicit slicing before NumPy converts compact spectra and reject boolean indexing. Validate writer edges and shard ROI geometry before publishing, and identify missing compact metadata clearly. Keep non-spectral publication errors tied to their actual filenames. Document the compact format and unchanged dense default in release notes. Signed-off-by: Trent Nelson <trentn@nvidia.com>
63d01a5 to
909ecc8
Compare
xRay currently writes each fitted spectrum once for every pixel column in its tile. Add
--artifact-layout tile-rowsand the matching Pythonartifact_layoutoption to store each spectrum once, with a shared reader that expands requested pixel slices.Dense NPY remains the compatibility default for direct NumPy consumers;
denseandtile-rowsare explicit runtime choices on single-node and distributed runs. Comparison, visualization, resume and shard merging support both layouts. Changing the layout invalidates shard resume reuse.A checked crop of existing detector artifacts stores 16 times fewer spectral values and reconstructs byte-for-byte. Validation: 200 focused GPU, CPU, CLI and visualization tests passed, including nonzero ROIs, partial tiles, uneven shards, selector propagation and resume behavior. All source hooks and mypy passed.