We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 923fa05 + e17b4e6 commit 8d26eecCopy full SHA for 8d26eec
nipype/interfaces/dcm2nii.py
@@ -124,6 +124,13 @@ def _parse_stdout(self, stdout):
124
base, filename, ext = split_filename(last_added_file)
125
bvecs.append(os.path.join(base, filename + ".bvec"))
126
bvals.append(os.path.join(base, filename + ".bval"))
127
+ elif line.startswith("Removed DWI from DTI scan"):
128
+ # such line can only follow the 'diffusion' case handled
129
+ # just above
130
+ for l in (bvecs, bvals):
131
+ l[-1] = os.path.join(
132
+ os.path.dirname(l[-1]),
133
+ 'x%s' % (os.path.basename(l[-1]),))
134
elif re.search('.*->(.*)', line):
135
val = re.search('.*->(.*)', line)
136
val = val.groups()[0]
0 commit comments