Skip to content

Commit 7772438

Browse files
committed
fix: allow for multiple levels of loops for estimation
1 parent 1e5f7b1 commit 7772438

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

nipype/interfaces/nipy/preprocess.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,34 +69,31 @@ def _list_outputs(self):
6969

7070
class FmriRealign4dInputSpec(BaseInterfaceInputSpec):
7171

72+
7273
in_file = InputMultiPath(exists=True,
7374
mandatory=True,
7475
desc="File to realign")
7576
tr = traits.Float(desc="TR in seconds",
7677
mandatory=True)
7778
slice_order = traits.List(traits.Int(),
78-
desc='0 based slice order',
79+
desc='0 based slice order',
7980
requires=["time_interp"])
8081
tr_slices = traits.Float(desc="TR slices")
8182
start = traits.Float(0.0, usedefault=True,
8283
desc="time offset into TR to align slices to")
8384
time_interp = traits.Enum(True, requires=["slice_order"],
84-
desc="Assume smooth changes across time e.g.,\
85+
desc="Assume smooth changes across time e.g.,\
8586
fmri series. If you don't want slice timing \
8687
correction set this to undefined")
87-
loops = traits.Either(traits.Int(5,usedefault=True),
88-
traits.List(traits.Int),
89-
usedefault=True,
90-
desc="loops within each run")
91-
between_loops = traits.Either(traits.Int(5),
92-
traits.List(traits.Int),
93-
usedefault=True, desc="loops used to \
88+
loops = InputMultiPath(traits.Int(5), usedefault=True,
89+
desc="loops within each run")
90+
between_loops = InputMultiPath(traits.Int(5),
91+
usedefault=True, desc="loops used to \
9492
realign different \
9593
runs")
96-
speedup = traits.Either(traits.Int(5),
97-
traits.List(traits.Int(5)),
98-
usedefault=True,
99-
desc="successive image \
94+
speedup = InputMultiPath(traits.Int(5),
95+
usedefault=True,
96+
desc="successive image \
10097
sub-sampling factors \
10198
for acceleration")
10299

0 commit comments

Comments
 (0)