@@ -1166,11 +1166,11 @@ class FUGUEInputSpec(FSLCommandInputSpec):
1166
1166
fmap_in_file = File (exists = True , argstr = '--loadfmap=%s' ,
1167
1167
desc = 'filename for loading fieldmap (rad/s)' )
1168
1168
unwarped_file = File (argstr = '--unwarp=%s' , desc = 'apply unwarping and save as filename' ,
1169
- xor = ['warped_file' ])
1169
+ xor = ['warped_file' ], requires = [ 'in_file' ] )
1170
1170
warped_file = File (argstr = '--warp=%s' , desc = 'apply forward warping and save as filename' ,
1171
- xor = ['unwarped_file' ])
1171
+ xor = ['unwarped_file' ], requires = [ 'in_file' ] )
1172
1172
1173
- forward_warping = traits .Bool (False , usedefault = True , mandatory = True ,
1173
+ forward_warping = traits .Bool (False , usedefault = True , mandatory = True , requires = [ 'in_file' ],
1174
1174
desc = 'apply forward warping instead of unwarping' )
1175
1175
1176
1176
dwell_to_asym_ratio = traits .Float (argstr = '--dwelltoasym=%.10f' ,
@@ -1315,13 +1315,13 @@ def _parse_inputs(self, skip=None):
1315
1315
skip += ['unwarped_file' ]
1316
1316
trait_spec = self .inputs .trait ('warped_file' )
1317
1317
trait_spec .name_template = "%s_warped"
1318
- trait_spec .name_source = [ 'in_file' ]
1318
+ trait_spec .name_source = 'in_file'
1319
1319
trait_spec .output_name = 'warped_file'
1320
1320
else :
1321
1321
skip += ['warped_file' ]
1322
1322
trait_spec = self .inputs .trait ('unwarped_file' )
1323
1323
trait_spec .name_template = "%s_unwarped"
1324
- trait_spec .name_source = [ 'in_file' ]
1324
+ trait_spec .name_source = 'in_file'
1325
1325
trait_spec .output_name = 'unwarped_file'
1326
1326
1327
1327
# Handle shift output
@@ -1339,11 +1339,11 @@ def _parse_inputs(self, skip=None):
1339
1339
trait_spec .name_template = '%s_vsm'
1340
1340
1341
1341
if input_fmap :
1342
- trait_spec .name_source = [ 'fmap_in_file' ]
1342
+ trait_spec .name_source = 'fmap_in_file'
1343
1343
elif input_phase :
1344
- trait_spec .name_source = [ 'phasemap_in_file' ]
1344
+ trait_spec .name_source = 'phasemap_in_file'
1345
1345
else :
1346
- trait_spec .name_source = [ 'shift_in_file' ]
1346
+ trait_spec .name_source = 'shift_in_file'
1347
1347
1348
1348
# Handle fieldmap output
1349
1349
fmap_save_masked = isdefined (self .inputs .save_fmap ) and self .inputs .save_shift
@@ -1360,11 +1360,11 @@ def _parse_inputs(self, skip=None):
1360
1360
trait_spec .name_template = '%s_fieldmap'
1361
1361
1362
1362
if input_vsm :
1363
- trait_spec .name_source = [ 'shift_in_file' ]
1363
+ trait_spec .name_source = 'shift_in_file'
1364
1364
elif input_phase :
1365
- trait_spec .name_source = [ 'phasemap_in_file' ]
1365
+ trait_spec .name_source = 'phasemap_in_file'
1366
1366
else :
1367
- trait_spec .name_source = [ 'fmap_in_file' ]
1367
+ trait_spec .name_source = 'fmap_in_file'
1368
1368
1369
1369
return super (FUGUE , self )._parse_inputs (skip = skip )
1370
1370
0 commit comments