Skip to content

Commit d223fbc

Browse files
committed
STY: black [ignore-rev]
1 parent eff6e70 commit d223fbc

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

nipype/interfaces/freesurfer/petsurfer.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ class GTMSegInputSpec(FSTraitedSpec):
4444
)
4545

4646
subsegwm = traits.Bool(
47-
argstr="--subsegwm",
48-
default=True,
49-
desc="subsegment WM into lobes (default)"
47+
argstr="--subsegwm", default=True, desc="subsegment WM into lobes (default)"
5048
)
5149

5250
keep_hypo = traits.Bool(
@@ -284,9 +282,7 @@ class GTMPVCInputSpec(FSTraitedSpec):
284282
desc="set the tissue fraction resolution parameter (def is 0.5)",
285283
)
286284

287-
rbv = traits.Bool(argstr="--rbv",
288-
requires=["subjects_dir"],
289-
desc="perform RBV PVC")
285+
rbv = traits.Bool(argstr="--rbv", requires=["subjects_dir"], desc="perform RBV PVC")
290286

291287
rbv_res = traits.Float(
292288
argstr="--rbv-res %f",
@@ -349,17 +345,17 @@ class GTMPVCInputSpec(FSTraitedSpec):
349345
save_eres = traits.Bool(argstr="--save-eres", desc="saves residual error")
350346

351347
save_yhat = traits.Bool(
352-
argstr="--save-yhat",
348+
argstr="--save-yhat",
353349
xor=["save_yhat_with_noise"],
354-
desc="save signal estimate (yhat) smoothed with the PSF"
350+
desc="save signal estimate (yhat) smoothed with the PSF",
355351
)
356352

357353
save_yhat_with_noise = traits.Tuple(
358354
traits.Int,
359355
traits.Int,
360-
argstr="--save-yhat-with-noise %i %i",
356+
argstr="--save-yhat-with-noise %i %i",
361357
xor=["save_yhat"],
362-
desc="seed nreps : save signal estimate (yhat) with noise"
358+
desc="seed nreps : save signal estimate (yhat) with noise",
363359
)
364360

365361
save_yhat_full_fov = traits.Bool(
@@ -417,8 +413,12 @@ class GTMPVCOutputSpec(TraitedSpec):
417413
input_file = File(desc="4D PET file in native volume space")
418414
reg_pet2anat = File(desc="Registration file to go from PET to anat")
419415
reg_anat2pet = File(desc="Registration file to go from anat to PET")
420-
reg_rbvpet2anat = File(desc="Registration file to go from RBV corrected PET to anat")
421-
reg_anat2rbvpet = File(desc="Registration file to go from anat to RBV corrected PET")
416+
reg_rbvpet2anat = File(
417+
desc="Registration file to go from RBV corrected PET to anat"
418+
)
419+
reg_anat2rbvpet = File(
420+
desc="Registration file to go from anat to RBV corrected PET"
421+
)
422422
mgx_ctxgm = File(
423423
desc="Cortical GM voxel-wise values corrected using the extended Muller-Gartner method",
424424
)
@@ -500,17 +500,17 @@ def _list_outputs(self):
500500
outputs["yhat"] = os.path.join(pvcdir, "yhat.nii.gz")
501501
if self.inputs.save_yhat_full_fov:
502502
outputs["yhat_full_fov"] = os.path.join(pvcdir, "yhat.fullfov.nii.gz")
503-
if isdefined(self.inputs.save_yhat_with_noise) and self.inputs.save_yhat_with_noise:
503+
if self.inputs.save_yhat_with_noise:
504504
outputs["yhat_with_noise"] = os.path.join(pvcdir, "yhat.nii.gz")
505-
if isdefined(self.inputs.mgx) and self.inputs.mgx:
505+
if self.inputs.mgx:
506506
outputs["mgx_ctxgm"] = os.path.join(pvcdir, "mgx.ctxgm.nii.gz")
507507
outputs["mgx_subctxgm"] = os.path.join(pvcdir, "mgx.subctxgm.nii.gz")
508508
outputs["mgx_gm"] = os.path.join(pvcdir, "mgx.gm.nii.gz")
509-
if isdefined(self.inputs.rbv) and self.inputs.rbv:
509+
if self.inputs.rbv:
510510
outputs["rbv"] = os.path.join(pvcdir, "rbv.nii.gz")
511511
outputs["reg_rbvpet2anat"] = os.path.join(pvcdir, "aux", "rbv2anat.lta")
512512
outputs["reg_anat2rbvpet"] = os.path.join(pvcdir, "aux", "anat2rbv.lta")
513-
if isdefined(self.inputs.opt) and self.inputs.opt:
513+
if self.inputs.opt:
514514
outputs["opt_params"] = os.path.join(pvcdir, "aux/opt.params.dat")
515515

516516
return outputs

0 commit comments

Comments
 (0)