Skip to content

Commit f29f3b0

Browse files
committed
indices are 1-base
1 parent 7657ae8 commit f29f3b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/fsl/epi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def _parse_inputs(self, skip=None):
378378
# If not defined, assume index are the first N entries in the
379379
# parameters file, for N input images.
380380
if not isdefined(self.inputs.in_index):
381-
self.inputs.in_index = range(len(self.inputs.in_files))
381+
self.inputs.in_index = range(1, len(self.inputs.in_files) + 1)
382382

383383
return super(ApplyTOPUP, self)._parse_inputs(skip=skip)
384384

0 commit comments

Comments
 (0)