Skip to content

Commit b9716eb

Browse files
committed
STY: black [ignore-rev]
1 parent 7fd8ade commit b9716eb

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

nipype/interfaces/freesurfer/petsurfer.py

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,11 @@ class GTMPVCInputSpec(FSTraitedSpec):
282282
desc="set the tissue fraction resolution parameter (def is 0.5)",
283283
)
284284

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

287291
rbv_res = traits.Float(
288292
argstr="--rbv-res %f",
@@ -293,7 +297,8 @@ class GTMPVCInputSpec(FSTraitedSpec):
293297
traits.Float,
294298
traits.List(traits.String),
295299
argstr="--mg %f %s...",
296-
desc="gmthresh RefId1 RefId2 ...: perform Mueller-Gaertner PVC, gmthresh is min gm pvf bet 0 and 1")
300+
desc="gmthresh RefId1 RefId2 ...: perform Mueller-Gaertner PVC, gmthresh is min gm pvf bet 0 and 1",
301+
)
297302

298303
mg_ref_cerebral_wm = traits.Bool(
299304
argstr="--mg-ref-cerebral-wm", desc=" set MG RefIds to 2 and 41"
@@ -369,8 +374,16 @@ class GTMPVCInputSpec(FSTraitedSpec):
369374
save_yhat0 = traits.Bool(argstr="--save-yhat0", desc="save signal estimate (yhat)")
370375

371376
optimization_schema = traits.Enum(
372-
"3D", "2D", "1D", "3D_MB", "2D_MB", "1D_MB", "MBZ", "MB3",
373-
argstr="--opt %s", desc="opt : optimization schema for applying adaptive GTM"
377+
"3D",
378+
"2D",
379+
"1D",
380+
"3D_MB",
381+
"2D_MB",
382+
"1D_MB",
383+
"MBZ",
384+
"MB3",
385+
argstr="--opt %s",
386+
desc="opt : optimization schema for applying adaptive GTM",
374387
)
375388

376389
opt_tol = traits.Tuple(
@@ -479,7 +492,19 @@ class GTMPVC(FSCommand):
479492

480493
def _format_arg(self, name, spec, val):
481494
if name == 'optimization_schema':
482-
return spec.argstr%{"3D":0, "2D":1, "1D":2, "3D_MB":3, "2D_MB":4, "1D_MB":5, "MBZ":6, "MB3":7}[val]
495+
return (
496+
spec.argstr
497+
% {
498+
"3D": 0,
499+
"2D": 1,
500+
"1D": 2,
501+
"3D_MB": 3,
502+
"2D_MB": 4,
503+
"1D_MB": 5,
504+
"MBZ": 6,
505+
"MB3": 7,
506+
}[val]
507+
)
483508
return super(GTMPVC, self)._format_arg(name, spec, val)
484509

485510
def _list_outputs(self):

0 commit comments

Comments
 (0)