Tolerance for dw_scheme differences on header merge #3027
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.
Closes #3015.
As part of this change, I decided that the "b=0 threshold" is more appropriate in
dwi/gradient.h
rather thandwi/shells.h
, since it may be applied to individual volumes rather than shells. Here it's used to say "if two images both have a b=0 volume here, then their diffusion gradient tables are compatible; I don't care if their unit directions are different".Also fixed some transitive includes in the process.
The new tests should hopefully demonstrate the fix:
dw_scheme
" entries only have to differ by one least significant digit to result in the whole diffusion gradient table being discarded.(They also neatly demonstrate why having just a list of tests per command is restrictive;
with
ctest
I'll be able to name these tests according to what they are actually evaluating,which isn't specific to any one command)