Skip to content

Commit ce20aa7

Browse files
committed
FIX: Update mapped values for optimization_schema
1 parent b9716eb commit ce20aa7

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

nipype/interfaces/freesurfer/petsurfer.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -491,18 +491,20 @@ class GTMPVC(FSCommand):
491491
output_spec = GTMPVCOutputSpec
492492

493493
def _format_arg(self, name, spec, val):
494+
# Values taken from
495+
# https://github.com/freesurfer/freesurfer/blob/fs-7.2/mri_gtmpvc/mri_gtmpvc.cpp#L115-L122
494496
if name == 'optimization_schema':
495497
return (
496498
spec.argstr
497499
% {
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,
500+
"3D": 1,
501+
"2D": 2,
502+
"1D": 3,
503+
"3D_MB": 4,
504+
"2D_MB": 5,
505+
"1D_MB": 6,
506+
"MBZ": 7,
507+
"MB3": 8,
506508
}[val]
507509
)
508510
return super(GTMPVC, self)._format_arg(name, spec, val)

0 commit comments

Comments
 (0)