Skip to content

Commit b1e19a5

Browse files
committed
fix: arg generation
1 parent ee5652a commit b1e19a5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

nipype/interfaces/fsl/epi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ def _overload_extension(self, value, name=None):
264264
class ApplyTOPUPInputSpec(FSLCommandInputSpec):
265265
in_files = InputMultiPath(File(exists=True), mandatory=True,
266266
desc='name of 4D file with images',
267-
argstr='--imain=%s...', sep=',')
267+
argstr='--imain=%s', sep=',')
268268
encoding_file = File(exists=True, mandatory=True,
269269
desc='name of text file with PE directions/times',
270270
argstr='--datain=%s')
271-
in_index = traits.List(traits.Int, argstr='--inindex=%d...', sep=',',
271+
in_index = traits.List(traits.Int, argstr='--inindex=%s', sep=',',
272272
mandatory=True,
273273
desc=('comma separated list of indicies into '
274274
'--datain of the input image (to be '
@@ -313,7 +313,7 @@ class ApplyTOPUP( FSLCommand ):
313313
>>> applytopup.inputs.in_topup_fieldcoef = "topup_fieldcoef.nii.gz"
314314
>>> applytopup.inputs.in_topup_movpar = "topup_movpar.txt"
315315
>>> applytopup.cmdline #doctest: +ELLIPSIS
316-
'applytopup --datain=topup_encoding.txt --imain=epi.nii,--imain=epi_rev.nii --inindex=1,--inindex=2 --topup=topup --out=epi_corrected.nii.gz'
316+
'applytopup --datain=topup_encoding.txt --imain=epi.nii,epi_rev.nii --inindex=1,2 --topup=topup --out=epi_corrected.nii.gz'
317317
>>> res = applytopup.run() # doctest: +SKIP
318318
319319
"""

nipype/interfaces/fsl/tests/test_auto_ApplyTOPUP.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ def test_ApplyTOPUP_inputs():
1616
ignore_exception=dict(nohash=True,
1717
usedefault=True,
1818
),
19-
in_files=dict(argstr='%s',
19+
in_files=dict(argstr='--imain=%s',
2020
mandatory=True,
21+
sep=',',
2122
),
22-
in_index=dict(argstr='%s',
23+
in_index=dict(argstr='--inindex=%s',
2324
mandatory=True,
25+
sep=',',
2426
),
2527
in_topup_fieldcoef=dict(argstr='--topup=%s',
2628
copyfile=False,

0 commit comments

Comments
 (0)