3131from .. import logging
3232from . import metrics as nam
3333from ..interfaces .base import (
34- BaseInterface , traits , TraitedSpec , File , InputMultiObject , OutputMultiObject ,
34+ BaseInterface , traits , TraitedSpec , File , InputMultiPath , OutputMultiPath ,
3535 BaseInterfaceInputSpec , isdefined , DynamicTraitedSpec , Undefined )
3636from ..utils .filemanip import fname_presuffix , split_filename , filename_to_list
3737from ..utils import NUMPY_MMAP
@@ -124,7 +124,7 @@ def _list_outputs(self):
124124
125125
126126class SimpleThresholdInputSpec (BaseInterfaceInputSpec ):
127- volumes = InputMultiObject (
127+ volumes = InputMultiPath (
128128 File (exists = True ), desc = 'volumes to be thresholded' , mandatory = True )
129129 threshold = traits .Float (
130130 desc = 'volumes to be thresholdedeverything below this value will be set\
@@ -133,7 +133,7 @@ class SimpleThresholdInputSpec(BaseInterfaceInputSpec):
133133
134134
135135class SimpleThresholdOutputSpec (TraitedSpec ):
136- thresholded_volumes = OutputMultiObject (
136+ thresholded_volumes = OutputMultiPath (
137137 File (exists = True ), desc = "thresholded volumes" )
138138
139139
@@ -170,7 +170,7 @@ def _list_outputs(self):
170170
171171
172172class ModifyAffineInputSpec (BaseInterfaceInputSpec ):
173- volumes = InputMultiObject (
173+ volumes = InputMultiPath (
174174 File (exists = True ),
175175 desc = 'volumes which affine matrices will be modified' ,
176176 mandatory = True )
@@ -183,7 +183,7 @@ class ModifyAffineInputSpec(BaseInterfaceInputSpec):
183183
184184
185185class ModifyAffineOutputSpec (TraitedSpec ):
186- transformed_volumes = OutputMultiObject (File (exist = True ))
186+ transformed_volumes = OutputMultiPath (File (exist = True ))
187187
188188
189189class ModifyAffine (BaseInterface ):
@@ -328,7 +328,7 @@ class Matlab2CSVInputSpec(TraitedSpec):
328328
329329
330330class Matlab2CSVOutputSpec (TraitedSpec ):
331- csv_files = OutputMultiObject (
331+ csv_files = OutputMultiPath (
332332 File (desc = 'Output CSV files for each variable saved in the input .mat\
333333 file' ))
334334
@@ -503,7 +503,7 @@ def makefmtlist(output_array, typelist, rowheadingsBool, shape,
503503
504504
505505class MergeCSVFilesInputSpec (TraitedSpec ):
506- in_files = InputMultiObject (
506+ in_files = InputMultiPath (
507507 File (exists = True ),
508508 mandatory = True ,
509509 desc = 'Input comma-separated value (CSV) files' )
@@ -1046,14 +1046,14 @@ def gen_noise(self,
10461046
10471047
10481048class NormalizeProbabilityMapSetInputSpec (TraitedSpec ):
1049- in_files = InputMultiObject (
1049+ in_files = InputMultiPath (
10501050 File (exists = True , mandatory = True , desc = 'The tpms to be normalized' ))
10511051 in_mask = File (
10521052 exists = True , desc = 'Masked voxels must sum up 1.0, 0.0 otherwise.' )
10531053
10541054
10551055class NormalizeProbabilityMapSetOutputSpec (TraitedSpec ):
1056- out_files = OutputMultiObject (File (exists = True ), desc = "normalized maps" )
1056+ out_files = OutputMultiPath (File (exists = True ), desc = "normalized maps" )
10571057
10581058
10591059class NormalizeProbabilityMapSet (BaseInterface ):
@@ -1099,10 +1099,10 @@ class SplitROIsInputSpec(TraitedSpec):
10991099
11001100
11011101class SplitROIsOutputSpec (TraitedSpec ):
1102- out_files = OutputMultiObject (File (exists = True ), desc = 'the resulting ROIs' )
1103- out_masks = OutputMultiObject (
1102+ out_files = OutputMultiPath (File (exists = True ), desc = 'the resulting ROIs' )
1103+ out_masks = OutputMultiPath (
11041104 File (exists = True ), desc = 'a mask indicating valid values' )
1105- out_index = OutputMultiObject (
1105+ out_index = OutputMultiPath (
11061106 File (exists = True ), desc = 'arrays keeping original locations' )
11071107
11081108
@@ -1148,9 +1148,9 @@ def _list_outputs(self):
11481148
11491149
11501150class MergeROIsInputSpec (TraitedSpec ):
1151- in_files = InputMultiObject (
1151+ in_files = InputMultiPath (
11521152 File (exists = True , mandatory = True , desc = 'files to be re-merged' ))
1153- in_index = InputMultiObject (
1153+ in_index = InputMultiPath (
11541154 File (exists = True , mandatory = True ),
11551155 desc = 'array keeping original locations' )
11561156 in_reference = File (exists = True , desc = 'reference file' )
@@ -1421,7 +1421,7 @@ def merge_rois(in_files, in_idxs, in_ref, dtype=None, out_file=None):
14211421
14221422
14231423class CalculateMedianInputSpec (BaseInterfaceInputSpec ):
1424- in_files = InputMultiObject (
1424+ in_files = InputMultiPath (
14251425 File (
14261426 exists = True ,
14271427 mandatory = True ,
@@ -1432,7 +1432,7 @@ class CalculateMedianInputSpec(BaseInterfaceInputSpec):
14321432
14331433
14341434class CalculateMedianOutputSpec (TraitedSpec ):
1435- median_files = OutputMultiObject (
1435+ median_files = OutputMultiPath (
14361436 File (exists = True ), desc = "One or more median images" )
14371437
14381438
0 commit comments