Skip to content

Commit 17ecdf1

Browse files
committed
FIX: simplify expression for outputs and update --save-yhat-full-fov
#3437 (comment)
1 parent 8c649fe commit 17ecdf1

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

nipype/interfaces/freesurfer/petsurfer.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ class GTMPVCInputSpec(FSTraitedSpec):
353353
)
354354

355355
save_yhat_full_fov = traits.Bool(
356-
argstr="--save_yhat_full_fov", desc="save signal estimate (yhat)"
356+
argstr="--save-yhat-full-fov", desc="save signal estimate (yhat)"
357357
)
358358

359359
save_yhat0 = traits.Bool(argstr="--save_yhat0", desc="save signal estimate (yhat)")
@@ -478,18 +478,15 @@ def _list_outputs(self):
478478
outputs["reg_pet2anat"] = os.path.join(pvcdir, "aux/bbpet2anat.lta")
479479

480480
# Assign the conditional outputs
481-
if isdefined(self.inputs.save_input) and self.inputs.save_input:
481+
if self.inputs.save_input:
482482
outputs["input_file"] = os.path.join(pvcdir, "input.nii.gz")
483-
if isdefined(self.inputs.save_yhat0) and self.inputs.save_yhat0:
483+
if self.inputs.save_yhat0:
484484
outputs["yhat0"] = os.path.join(pvcdir, "yhat0.nii.gz")
485-
if isdefined(self.inputs.save_yhat) and self.inputs.save_yhat:
485+
if self.inputs.save_yhat:
486486
outputs["yhat"] = os.path.join(pvcdir, "yhat.nii.gz")
487-
if isdefined(self.inputs.save_yhat_full_fov) and self.inputs.save_yhat_full_fov:
487+
if self.inputs.save_yhat_full_fov:
488488
outputs["yhat_full_fov"] = os.path.join(pvcdir, "yhat_full_fov.nii.gz")
489-
if (
490-
isdefined(self.inputs.save_yhat_with_noise)
491-
and self.inputs.save_yhat_with_noise
492-
):
489+
if self.inputs.save_yhat_with_noise:
493490
outputs["yhat_with_noise"] = os.path.join(pvcdir, "yhat_with_noise.nii.gz")
494491
if isdefined(self.inputs.mgx) and self.inputs.mgx:
495492
outputs["mgx_ctxgm"] = os.path.join(pvcdir, "mgx.ctxgm.nii.gz")

0 commit comments

Comments
 (0)