TST: Test comprehensively dMRI b0 volume handling#364
Merged
jhlegarreta merged 1 commit intoNov 29, 2025
Conversation
c9fac88 to
cfa5b5c
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #364 +/- ##
=======================================
Coverage 80.95% 80.95%
=======================================
Files 34 34
Lines 1959 1959
Branches 207 207
=======================================
Hits 1586 1586
Misses 321 321
Partials 52 52 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Test comprehensively dMRI b0 volume handling: - Add a test that checks the behavior of the DWI class `__attrs_post_init__` method that handles setting the `bzero` attribute and masking the `dataobj` and gradient data corresponding to the b=0 volumes. - Further parametrize the post init error handling function to check the behavior of the `__attrs_post_init__` method in a broader range of values. Specifically, check that the initialization fails when the number of provided volumes is right at the limit of the number of the required DTI orientations.
cfa5b5c to
6829199
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test comprehensively dMRI b0 volume handling:
__attrs_post_init__method that handles setting thebzeroattribute and masking thedataobjand gradient data corresponding to the b=0 volumes.__attrs_post_init__method in a broader range of values. Specifically, check that the initialization fails when the number of provided volumes is right at the limit of the number of the required DTI orientations.