Uh oh!
There was an error while loading. Please reload this page.
Perf(test): shrink synthetic volumes in image loading and dataset tests - #9034
Perf(test): shrink synthetic volumes in image loading and dataset tests#9034aymuos15 wants to merge 2 commits into
Conversation
…ts (Project-MONAI#9034) Signed-off-by: Soumya Snigdha Kundu <soumya_snigdha.kundu@kcl.ac.uk>
22d45da to
6cb74f7CompareNo actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe test suite now generates smaller 32³ image volumes for dataset and image-loading tests. Expected shapes and metadata fixtures were updated accordingly. The mapping-file test uses 16³ volumes. Coverage for transforms, labels, metadata, readers, channel dimensions, caching, and DataLoader batching remains unchanged. Estimated code review effort: 2 (Simple) | ~8 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Shrinks the synthetic volumes these six test files generate, so each test still exercises the same code paths in a fraction of the runtime. Pure test-fixture change: no production code touched, no test logic altered:
tests/transforms/test_load_image.py,tests/transforms/test_load_imaged.py: 128³ volumes → 32³; multi-image cases 3×128³ → 3×32³; the 384×128³ channel-dim case scales to 96×32³.tests/data/test_arraydataset.py,test_cachedataset.py,test_dataset.py: 128³ → 32³; the Spacing case 64×64×33 → 16×16×9.tests/data/test_mapping_file.py: 128³ → 16³.The 128³ sizes were an unexamined default; nothing depends on the magnitude, only that shapes round-trip through
.nii.gzI/O. Expected shapes were updated in lockstep, so the assertions still verify the same behaviour.Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.