We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7d72b8 commit 1d7070cCopy full SHA for 1d7070c
niworkflows/interfaces/images.py
@@ -226,6 +226,9 @@ class _RobustAverageInputSpec(BaseInterfaceInputSpec):
226
True, usedefault=True, desc="whether the output should be clipped below zero"
227
)
228
num_threads = traits.Int(desc="number of threads")
229
+ two_pass = traits.Bool(
230
+ True, usedefault=True, desc="whether two passes of correction is necessary"
231
+ )
232
233
234
class _RobustAverageOutputSpec(TraitedSpec):
@@ -324,7 +327,7 @@ def _run_interface(self, runtime):
324
327
volreg = Volreg(
325
328
in_file=self._results["out_volumes"],
326
329
interp="Fourier",
- args="-twopass",
330
+ args="-twopass" if self.inputs.two_pass else "",
331
zpad=4,
332
outputtype="NIFTI_GZ",
333
0 commit comments