@@ -184,7 +184,7 @@ def _gen_filename(self, name):
184
184
## dcm2niix update
185
185
186
186
class Dcm2niixInputSpec (CommandLineInputSpec ):
187
- source_names = InputMultiPath (File (exists = True ), argstr = "%s" , position = - 1 ,
187
+ source_names = InputMultiPath (File (exists = True ), argstr = "%s" , position = - 1 ,
188
188
copyfile = False , mandatory = True , xor = ['source_dir' ])
189
189
source_dir = Directory (exists = True , argstr = "%s" , position = - 1 , mandatory = True ,
190
190
xor = ['source_names' ])
@@ -223,9 +223,9 @@ class Dcm2niix(CommandLine):
223
223
224
224
def _format_arg (self , opt , spec , val ):
225
225
if opt in ['bids_format' , 'single_file' , 'verbose' ]:
226
-
226
+
227
227
spec = deepcopy (spec )
228
-
228
+
229
229
if val :
230
230
spec .argstr += ' y'
231
231
else :
@@ -259,7 +259,7 @@ def _parse_stdout(self, stdout):
259
259
output_dir = self .inputs .output_dir
260
260
else :
261
261
output_dir = self ._gen_filename ('output_dir' )
262
-
262
+
263
263
out_file = os .path .abspath (os .path .join (output_dir , fname ))
264
264
265
265
# extract bvals
@@ -271,7 +271,7 @@ def _parse_stdout(self, stdout):
271
271
# next scan will have bvals/bvecs
272
272
elif 'DTI gradient directions' in line :
273
273
find_b = True
274
-
274
+
275
275
else :
276
276
pass
277
277
0 commit comments