You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/blend
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,9 @@ import sys
20
20
21
21
iflen(sys.argv) <=1:
22
22
sys.stderr.write('A script to blend two sets of movie frames together with a desired overlap.\n')
23
-
sys.stderr.write('The input arguments are two folders containing the movie frames (eg. output from the MRview screenshot tool), and the desired number of overlapping frames.\n')
23
+
sys.stderr.write('The input arguments are two folders containing the movie frames '
24
+
'(eg. output from the MRview screenshot tool), and the desired number '
raiseMRtrixError('Image "'+header.name() +'" is not a 4D image series')
48
+
iflen(header.size()) >4:
49
+
raiseMRtrixError('Image "'+header.name() +'" contains more than 4 dimensions')
50
50
ifnot'dw_scheme'inheader.keyval():
51
51
raiseMRtrixError('Image "'+header.name() +'" does not contain a gradient table')
52
-
num_grad_lines=len(header.keyval()['dw_scheme'])
53
-
ifnum_grad_lines!=header.size()[3]:
54
-
raiseMRtrixError('Number of lines in gradient table for image "'+header.name() +'" ('+str(num_grad_lines) +') does not match number of volumes ('+str(header.size()[3]) +')')
raiseMRtrixError('Number of lines in gradient table for image "'+header.name() +'" ('+str(num_grad_lines) +') does not match number of volumes ('+str(num_volumes) +')')
0 commit comments