Avoid dipy
versions 1.6.0 + 1.7.0 that contain a method=restore
bug
#4232
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.
Description
sct_dmri_compute_dti
fails onsct_example_data
images when using-method restore
:I dug into this on the
dipy
side of things, and found that the issue only exists fordipy==1.6.0,1.7.0
, and has already been fixed upstream.dipy==1.8.0
is releasing soon, so to avoid freezing a buggy version for SCT v6.1, we skip these two versions in our requirements.txt.Note: We have an existing test for this. The reason that our test suite didn't catch this is because
dipy
chunks the processing, and the test image is smaller than a single chunk, but the bug only occurs when there are >1 chunks. I'm not quite sure how to test for this given our available testing data? But maybe given that this is a one-off issue with an upstream library, we don't necessarily need to test for this.Linked issues
Fixes #4209.