Skip to content

Commit 36ffda1

Browse files
committed
changing name MultiPath to MultiObject
1 parent cc4c418 commit 36ffda1

File tree

110 files changed

+655
-655
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+655
-655
lines changed

nipype/algorithms/confounds.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from ..external.due import BibTeX
2828
from ..interfaces.base import (traits, TraitedSpec, BaseInterface,
2929
BaseInterfaceInputSpec, File, isdefined,
30-
InputMultiPath, OutputMultiPath)
30+
InputMultiObject, OutputMultiObject)
3131
from ..utils import NUMPY_MMAP
3232
from ..utils.misc import normalize_mc_params
3333

@@ -360,7 +360,7 @@ def _list_outputs(self):
360360
class CompCorInputSpec(BaseInterfaceInputSpec):
361361
realigned_file = File(
362362
exists=True, mandatory=True, desc='already realigned brain image (4D)')
363-
mask_files = InputMultiPath(
363+
mask_files = InputMultiObject(
364364
File(exists=True),
365365
desc=('One or more mask files that determines '
366366
'ROI (3D). When more that one file is '
@@ -649,7 +649,7 @@ class TCompCorInputSpec(CompCorInputSpec):
649649

650650
class TCompCorOutputSpec(CompCorOutputSpec):
651651
# and all the fields in CompCorOutputSpec
652-
high_variance_masks = OutputMultiPath(
652+
high_variance_masks = OutputMultiObject(
653653
File(exists=True),
654654
desc=(("voxels exceeding the variance"
655655
" threshold")))
@@ -714,7 +714,7 @@ def _list_outputs(self):
714714

715715

716716
class TSNRInputSpec(BaseInterfaceInputSpec):
717-
in_file = InputMultiPath(
717+
in_file = InputMultiObject(
718718
File(exists=True),
719719
mandatory=True,
720720
desc='realigned 4D file or a list of 3D files')

nipype/algorithms/metrics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from ..utils.misc import package_check
3030

3131
from ..interfaces.base import (BaseInterface, traits, TraitedSpec, File,
32-
InputMultiPath, BaseInterfaceInputSpec,
32+
InputMultiObject, BaseInterfaceInputSpec,
3333
isdefined)
3434
from ..utils import NUMPY_MMAP
3535

@@ -382,11 +382,11 @@ def _list_outputs(self):
382382

383383

384384
class FuzzyOverlapInputSpec(BaseInterfaceInputSpec):
385-
in_ref = InputMultiPath(
385+
in_ref = InputMultiObject(
386386
File(exists=True),
387387
mandatory=True,
388388
desc='Reference image. Requires the same dimensions as in_tst.')
389-
in_tst = InputMultiPath(
389+
in_tst = InputMultiObject(
390390
File(exists=True),
391391
mandatory=True,
392392
desc='Test image. Requires the same dimensions as in_ref.')

nipype/algorithms/misc.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from .. import logging
3232
from . import metrics as nam
3333
from ..interfaces.base import (
34-
BaseInterface, traits, TraitedSpec, File, InputMultiPath, OutputMultiPath,
34+
BaseInterface, traits, TraitedSpec, File, InputMultiObject, OutputMultiObject,
3535
BaseInterfaceInputSpec, isdefined, DynamicTraitedSpec, Undefined)
3636
from ..utils.filemanip import fname_presuffix, split_filename, filename_to_list
3737
from ..utils import NUMPY_MMAP
@@ -124,7 +124,7 @@ def _list_outputs(self):
124124

125125

126126
class SimpleThresholdInputSpec(BaseInterfaceInputSpec):
127-
volumes = InputMultiPath(
127+
volumes = InputMultiObject(
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

135135
class SimpleThresholdOutputSpec(TraitedSpec):
136-
thresholded_volumes = OutputMultiPath(
136+
thresholded_volumes = OutputMultiObject(
137137
File(exists=True), desc="thresholded volumes")
138138

139139

@@ -170,7 +170,7 @@ def _list_outputs(self):
170170

171171

172172
class ModifyAffineInputSpec(BaseInterfaceInputSpec):
173-
volumes = InputMultiPath(
173+
volumes = InputMultiObject(
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

185185
class ModifyAffineOutputSpec(TraitedSpec):
186-
transformed_volumes = OutputMultiPath(File(exist=True))
186+
transformed_volumes = OutputMultiObject(File(exist=True))
187187

188188

189189
class ModifyAffine(BaseInterface):
@@ -328,7 +328,7 @@ class Matlab2CSVInputSpec(TraitedSpec):
328328

329329

330330
class Matlab2CSVOutputSpec(TraitedSpec):
331-
csv_files = OutputMultiPath(
331+
csv_files = OutputMultiObject(
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

505505
class MergeCSVFilesInputSpec(TraitedSpec):
506-
in_files = InputMultiPath(
506+
in_files = InputMultiObject(
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

10481048
class NormalizeProbabilityMapSetInputSpec(TraitedSpec):
1049-
in_files = InputMultiPath(
1049+
in_files = InputMultiObject(
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

10551055
class NormalizeProbabilityMapSetOutputSpec(TraitedSpec):
1056-
out_files = OutputMultiPath(File(exists=True), desc="normalized maps")
1056+
out_files = OutputMultiObject(File(exists=True), desc="normalized maps")
10571057

10581058

10591059
class NormalizeProbabilityMapSet(BaseInterface):
@@ -1099,10 +1099,10 @@ class SplitROIsInputSpec(TraitedSpec):
10991099

11001100

11011101
class SplitROIsOutputSpec(TraitedSpec):
1102-
out_files = OutputMultiPath(File(exists=True), desc='the resulting ROIs')
1103-
out_masks = OutputMultiPath(
1102+
out_files = OutputMultiObject(File(exists=True), desc='the resulting ROIs')
1103+
out_masks = OutputMultiObject(
11041104
File(exists=True), desc='a mask indicating valid values')
1105-
out_index = OutputMultiPath(
1105+
out_index = OutputMultiObject(
11061106
File(exists=True), desc='arrays keeping original locations')
11071107

11081108

@@ -1148,9 +1148,9 @@ def _list_outputs(self):
11481148

11491149

11501150
class MergeROIsInputSpec(TraitedSpec):
1151-
in_files = InputMultiPath(
1151+
in_files = InputMultiObject(
11521152
File(exists=True, mandatory=True, desc='files to be re-merged'))
1153-
in_index = InputMultiPath(
1153+
in_index = InputMultiObject(
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

14231423
class CalculateMedianInputSpec(BaseInterfaceInputSpec):
1424-
in_files = InputMultiPath(
1424+
in_files = InputMultiObject(
14251425
File(
14261426
exists=True,
14271427
mandatory=True,
@@ -1432,7 +1432,7 @@ class CalculateMedianInputSpec(BaseInterfaceInputSpec):
14321432

14331433

14341434
class CalculateMedianOutputSpec(TraitedSpec):
1435-
median_files = OutputMultiPath(
1435+
median_files = OutputMultiObject(
14361436
File(exists=True), desc="One or more median images")
14371437

14381438

nipype/algorithms/modelgen.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from scipy.special import gammaln
3131

3232
from ..utils import NUMPY_MMAP
33-
from ..interfaces.base import (BaseInterface, TraitedSpec, InputMultiPath,
33+
from ..interfaces.base import (BaseInterface, TraitedSpec, InputMultiObject,
3434
traits, File, Bunch, BaseInterfaceInputSpec,
3535
isdefined)
3636
from ..utils.filemanip import filename_to_list
@@ -182,22 +182,22 @@ def gen_info(run_event_files):
182182

183183

184184
class SpecifyModelInputSpec(BaseInterfaceInputSpec):
185-
subject_info = InputMultiPath(
185+
subject_info = InputMultiObject(
186186
Bunch,
187187
mandatory=True,
188188
xor=['subject_info', 'event_files'],
189189
desc='Bunch or List(Bunch) subject-specific '
190190
'condition information. see '
191191
':ref:`SpecifyModel` or '
192192
'SpecifyModel.__doc__ for details')
193-
event_files = InputMultiPath(
193+
event_files = InputMultiObject(
194194
traits.List(File(exists=True)),
195195
mandatory=True,
196196
xor=['subject_info', 'event_files'],
197197
desc='List of event description files 1, 2 or 3 '
198198
'column format corresponding to onsets, '
199199
'durations and amplitudes')
200-
realignment_parameters = InputMultiPath(
200+
realignment_parameters = InputMultiObject(
201201
File(exists=True),
202202
desc='Realignment parameters returned '
203203
'by motion correction algorithm',
@@ -210,12 +210,12 @@ class SpecifyModelInputSpec(BaseInterfaceInputSpec):
210210
"NIPY",
211211
usedefault=True,
212212
desc="Source of motion parameters")
213-
outlier_files = InputMultiPath(
213+
outlier_files = InputMultiObject(
214214
File(exists=True),
215215
desc='Files containing scan outlier indices '
216216
'that should be tossed',
217217
copyfile=False)
218-
functional_runs = InputMultiPath(
218+
functional_runs = InputMultiObject(
219219
traits.Either(traits.List(File(exists=True)), File(exists=True)),
220220
mandatory=True,
221221
desc='Data files for model. List of 4D '

nipype/algorithms/rapidart.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
import scipy.io as sio
3232

3333
from ..utils import NUMPY_MMAP
34-
from ..interfaces.base import (BaseInterface, traits, InputMultiPath,
35-
OutputMultiPath, TraitedSpec, File,
34+
from ..interfaces.base import (BaseInterface, traits, InputMultiObject,
35+
OutputMultiObject, TraitedSpec, File,
3636
BaseInterfaceInputSpec, isdefined)
3737
from ..utils.filemanip import filename_to_list, save_json, split_filename
3838
from ..utils.misc import find_indices, normalize_mc_params
@@ -163,12 +163,12 @@ def _calc_norm_affine(affines, use_differences, brain_pts=None):
163163

164164

165165
class ArtifactDetectInputSpec(BaseInterfaceInputSpec):
166-
realigned_files = InputMultiPath(
166+
realigned_files = InputMultiObject(
167167
File(exists=True),
168168
desc=("Names of realigned functional data "
169169
"files"),
170170
mandatory=True)
171-
realignment_parameters = InputMultiPath(
171+
realignment_parameters = InputMultiObject(
172172
File(exists=True),
173173
mandatory=True,
174174
desc=("Names of realignment "
@@ -267,22 +267,22 @@ class ArtifactDetectInputSpec(BaseInterfaceInputSpec):
267267

268268

269269
class ArtifactDetectOutputSpec(TraitedSpec):
270-
outlier_files = OutputMultiPath(
270+
outlier_files = OutputMultiObject(
271271
File(exists=True),
272272
desc=("One file for each functional run "
273273
"containing a list of 0-based indices"
274274
" corresponding to outlier volumes"))
275-
intensity_files = OutputMultiPath(
275+
intensity_files = OutputMultiObject(
276276
File(exists=True),
277277
desc=("One file for each functional run "
278278
"containing the global intensity "
279279
"values determined from the "
280280
"brainmask"))
281-
norm_files = OutputMultiPath(
281+
norm_files = OutputMultiObject(
282282
File,
283283
desc=("One file for each functional run "
284284
"containing the composite norm"))
285-
statistic_files = OutputMultiPath(
285+
statistic_files = OutputMultiObject(
286286
File(exists=True),
287287
desc=("One file for each functional run "
288288
"containing information about the "
@@ -291,16 +291,16 @@ class ArtifactDetectOutputSpec(TraitedSpec):
291291
"details of stimulus correlated "
292292
"motion and a listing or artifacts "
293293
"by event type."))
294-
plot_files = OutputMultiPath(
294+
plot_files = OutputMultiObject(
295295
File,
296296
desc=("One image file for each functional run "
297297
"containing the detected outliers"))
298-
mask_files = OutputMultiPath(
298+
mask_files = OutputMultiObject(
299299
File,
300300
desc=("One image file for each functional run "
301301
"containing the mask used for global "
302302
"signal calculation"))
303-
displacement_files = OutputMultiPath(
303+
displacement_files = OutputMultiObject(
304304
File,
305305
desc=("One image file for each "
306306
"functional run containing the "
@@ -631,13 +631,13 @@ def _run_interface(self, runtime):
631631

632632

633633
class StimCorrInputSpec(BaseInterfaceInputSpec):
634-
realignment_parameters = InputMultiPath(
634+
realignment_parameters = InputMultiObject(
635635
File(exists=True),
636636
mandatory=True,
637637
desc=("Names of realignment "
638638
"parameters corresponding to "
639639
"the functional data files"))
640-
intensity_values = InputMultiPath(
640+
intensity_values = InputMultiObject(
641641
File(exists=True),
642642
mandatory=True,
643643
desc=("Name of file containing intensity "
@@ -653,7 +653,7 @@ class StimCorrInputSpec(BaseInterfaceInputSpec):
653653

654654

655655
class StimCorrOutputSpec(TraitedSpec):
656-
stimcorr_files = OutputMultiPath(
656+
stimcorr_files = OutputMultiObject(
657657
File(exists=True),
658658
desc=("List of files containing "
659659
"correlation values"))

nipype/interfaces/afni/model.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
import os
1919

2020
from ..base import (CommandLineInputSpec, CommandLine, Directory, TraitedSpec,
21-
traits, isdefined, File, InputMultiPath, Undefined, Str)
21+
traits, isdefined, File, InputMultiObject, Undefined, Str)
2222
from ...external.due import BibTeX
2323

2424
from .base import (AFNICommandBase, AFNICommand, AFNICommandInputSpec,
2525
AFNICommandOutputSpec)
2626

2727

2828
class DeconvolveInputSpec(AFNICommandInputSpec):
29-
in_files = InputMultiPath(
29+
in_files = InputMultiObject(
3030
File(exists=True),
3131
desc='filenames of 3D+time input datasets. More than one filename can '
3232
'be given and the datasets will be auto-catenated in time. '
@@ -306,7 +306,7 @@ def _list_outputs(self):
306306

307307
class RemlfitInputSpec(AFNICommandInputSpec):
308308
# mandatory files
309-
in_files = InputMultiPath(
309+
in_files = InputMultiObject(
310310
File(exists=True),
311311
desc='Read time series dataset',
312312
argstr='-input "%s"',
@@ -353,7 +353,7 @@ class RemlfitInputSpec(AFNICommandInputSpec):
353353
'(only with \'mask\' or \'automask\' options).',
354354
argstr='-STATmask %s',
355355
exists=True)
356-
addbase = InputMultiPath(
356+
addbase = InputMultiObject(
357357
File(
358358
exists=True,
359359
desc='file containing columns to add to regression matrix'),
@@ -364,7 +364,7 @@ class RemlfitInputSpec(AFNICommandInputSpec):
364364
copyfile=False,
365365
sep=" ",
366366
argstr='-addbase %s')
367-
slibase = InputMultiPath(
367+
slibase = InputMultiObject(
368368
File(
369369
exists=True,
370370
desc='file containing columns to add to regression matrix'),
@@ -381,7 +381,7 @@ class RemlfitInputSpec(AFNICommandInputSpec):
381381
'will slow the program down, and make it use a lot more memory '
382382
'(to hold all the matrix stuff).',
383383
argstr='-slibase %s')
384-
slibase_sm = InputMultiPath(
384+
slibase_sm = InputMultiObject(
385385
File(
386386
exists=True,
387387
desc='file containing columns to add to regression matrix'),

0 commit comments

Comments
 (0)