Skip to content

Commit 264f0e4

Browse files
committed
Use correct argstr for multiple dsorts
1 parent 76203b2 commit 264f0e4

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

nipype/interfaces/afni/preprocess.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -2497,7 +2497,7 @@ class TProjectInputSpec(AFNICommandInputSpec):
24972497
File(
24982498
exists=True,
24992499
copyfile=False),
2500-
argstr="%s",
2500+
argstr="-dsort %s...",
25012501
desc="""Remove the 3D+time time series in dataset fset.
25022502
++ That is, 'fset' contains a different nuisance time
25032503
series for each voxel (e.g., from AnatICOR).
@@ -2570,10 +2570,6 @@ class TProject(AFNICommand):
25702570
input_spec = TProjectInputSpec
25712571
output_spec = AFNICommandOutputSpec
25722572

2573-
def _format_arg(self, name, spec, value):
2574-
if name == 'dsort':
2575-
return ' '.join(["-dsort %s" % dsort_file for dsort_file in value])
2576-
return super(TProject, self)._format_arg(name, spec, value)
25772573

25782574
class TShiftInputSpec(AFNICommandInputSpec):
25792575
in_file = File(

nipype/interfaces/afni/tests/test_auto_TProject.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_TProject_inputs():
1717
censor=dict(argstr='-censor %s', ),
1818
censortr=dict(argstr='-CENSORTR %s', ),
1919
concat=dict(argstr='-concat %s', ),
20-
dsort=dict(argstr='%s', ),
20+
dsort=dict(argstr='-dsort %s...', ),
2121
environ=dict(
2222
nohash=True,
2323
usedefault=True,

0 commit comments

Comments
 (0)