@@ -1339,14 +1339,18 @@ def _list_outputs(self):
1339
1339
1340
1340
1341
1341
class LocalBistatInputSpec (AFNICommandInputSpec ):
1342
- in_files = InputMultiPath (
1343
- File (exists = True ),
1344
- minlen = 2 ,
1345
- maxlen = 2 ,
1342
+ in_file1 = File (
1343
+ exists = True ,
1344
+ mandatory = True ,
1345
+ argstr = '%s' ,
1346
+ position = - 2 ,
1347
+ desc = 'Filename of the first image' )
1348
+ in_file2 = File (
1349
+ exists = True ,
1346
1350
mandatory = True ,
1347
1351
argstr = '%s' ,
1348
1352
position = - 1 ,
1349
- desc = 'Filenames of the 2 images to compute statistics between ' )
1353
+ desc = 'Filename of the second image ' )
1350
1354
neighborhood = traits .Either (
1351
1355
traits .Tuple (traits .Enum ('SPHERE' , 'RHDD' , 'TOHD' ), traits .Float ()),
1352
1356
traits .Tuple (traits .Enum ('RECT' ), traits .Tuple (traits .Float (),
@@ -1409,7 +1413,7 @@ class LocalBistatInputSpec(AFNICommandInputSpec):
1409
1413
out_file = traits .File (
1410
1414
desc = 'Output dataset.' ,
1411
1415
argstr = '-prefix %s' ,
1412
- name_source = 'in_files ' ,
1416
+ name_source = 'in_file1 ' ,
1413
1417
name_template = '%s_bistat' ,
1414
1418
keep_extension = True ,
1415
1419
position = 0 )
@@ -1427,7 +1431,8 @@ class LocalBistat(AFNICommand):
1427
1431
1428
1432
>>> from nipype.interfaces import afni
1429
1433
>>> bistat = afni.LocalBistat()
1430
- >>> bistat.inputs.in_files = ['functional.nii', 'structural.nii']
1434
+ >>> bistat.inputs.in_file1 = 'functional.nii'
1435
+ >>> bistat.inputs.in_file2 = 'structural.nii'
1431
1436
>>> bistat.inputs.neighborhood = ('SPHERE', 1.2)
1432
1437
>>> bistat.inputs.stat = 'pearson'
1433
1438
>>> bistat.inputs.outputtype = 'NIFTI'
0 commit comments