You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 20a9632
Browse filesBrowse the repository at this point in the historyBrowse files
Perf(test): shrink synthetic volumes in image loading and dataset tests (#9034)
### 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.gz` I/O. Expected
shapes were updated in lockstep, so the assertions still verify the same
behaviour.
### Types of changes
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.
Signed-off-by: Soumya Snigdha Kundu <soumya_snigdha.kundu@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
0 commit comments