[FIX] #2435 Error creating gradients in DTIRecon - #2460
Conversation
The bvecs file was read assuming that directions followed YZX order, which created a gradients_matrix.txt with swapped directions. The new order is XYZ.
effigies
left a comment
There was a problem hiding this comment.
Thanks for this. If it's not too much trouble, I have a suggestion for additional cleanup.
| bvecs_z = [ | ||
| val for val in re.split('\s+', | ||
| fbvecs.readline().strip()) | ||
| ] |
There was a problem hiding this comment.
Let's just go ahead and simplify this while we're here:
with open(bvecs_file) as fbvecs:
bvecs_x = fbvecs.readline().split()
bvecs_y = fbvecs.readline().split()
bvecs_z = fbvecs.readline().split()|
Great, thanks. Can you verify that this still produces the output you need? |
|
I did verify it before committing. |
Codecov Report
@@ Coverage Diff @@
## master #2460 +/- ##
=======================================
Coverage 66.62% 66.62%
=======================================
Files 328 328
Lines 42508 42508
Branches 5280 5277 -3
=======================================
Hits 28321 28321
Misses 13505 13505
Partials 682 682
Continue to review full report at Codecov.
|
|
I'll merge this in a batch with some others soon. Do you want to add yourself to the .zenodo.json? You'll be listed as a contributor in the Zenodo entry for the next release. |
|
Merging. Please update Zenodo in another PR, if you would like to be listed as a contributor. |
The bvecs file was read assuming that directions followed YZX order, which created a gradients_matrix.txt with swapped directions. The new order is XYZ.
Closes #2435.