Skip to content

Commit df6f48b

Browse files
committed
FIX: fix --save-yhat-with-noise and --save-yhat0
1 parent 8752355 commit df6f48b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

nipype/interfaces/freesurfer/petsurfer.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -348,15 +348,18 @@ class GTMPVCInputSpec(FSTraitedSpec):
348348
argstr="--save-yhat", desc="save signal estimate (yhat) smoothed with the PSF"
349349
)
350350

351-
save_yhat_with_noise = traits.Bool(
352-
argstr="--save-yhat-with-noise", desc="save signal estimate (yhat) with noise"
351+
save_yhat_with_noise = traits.Tuple(
352+
traits.Int,
353+
traits.Int,
354+
argstr="--save-yhat-with-noise %i %i",
355+
desc="seed nreps : save signal estimate (yhat) with noise"
353356
)
354357

355358
save_yhat_full_fov = traits.Bool(
356359
argstr="--save-yhat-full-fov", desc="save signal estimate (yhat)"
357360
)
358361

359-
save_yhat0 = traits.Bool(argstr="--save_yhat0", desc="save signal estimate (yhat)")
362+
save_yhat0 = traits.Bool(argstr="--save-yhat0", desc="save signal estimate (yhat)")
360363

361364
opt = traits.Int(
362365
argstr="--opt %i", desc="opt : optimization schema for applying adaptive GTM"
@@ -485,9 +488,9 @@ def _list_outputs(self):
485488
if self.inputs.save_yhat:
486489
outputs["yhat"] = os.path.join(pvcdir, "yhat.nii.gz")
487490
if self.inputs.save_yhat_full_fov:
488-
outputs["yhat_full_fov"] = os.path.join(pvcdir, "yhat_full_fov.nii.gz")
489-
if self.inputs.save_yhat_with_noise:
490-
outputs["yhat_with_noise"] = os.path.join(pvcdir, "yhat_with_noise.nii.gz")
491+
outputs["yhat_full_fov"] = os.path.join(pvcdir, "yhat.fullfov.nii.gz")
492+
if isdefined(self.inputs.save_yhat_with_noise) and self.inputs.save_yhat_with_noise:
493+
outputs["yhat_with_noise"] = os.path.join(pvcdir, "yhat.nii.gz")
491494
if isdefined(self.inputs.mgx) and self.inputs.mgx:
492495
outputs["mgx_ctxgm"] = os.path.join(pvcdir, "mgx.ctxgm.nii.gz")
493496
outputs["mgx_subctxgm"] = os.path.join(pvcdir, "mgx.subctxgm.nii.gz")

0 commit comments

Comments
 (0)