Skip to content

Commit

Permalink
convert_bruker: fix DW scheme handling
Browse files Browse the repository at this point in the history
As described in MRtrix3#2177
  • Loading branch information
jdtournier authored Sep 23, 2020
1 parent a604689 commit c8bf5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/convert_bruker
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def main():

try:
assert len(bvec) == 3*len(bval)
bvec = [ bvec[n:n+3] for n in range(0,len(bval),3) ]
bvec = [ bvec[n:n+3] for n in range(0,len(bvec),3) ]
for direction, value in zip(bvec, bval):
file_out.write ('dw_scheme: ' + direction[0] + ',' + direction[1] + ',' + str(-float(direction[2])) + ',' + value + '\n')
except:
Expand Down

0 comments on commit c8bf5f4

Please sign in to comment.