Skip to content

Commit 55340cf

Browse files
authored
FIX: Additional minor fixes
1 parent e26b974 commit 55340cf

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

nipype/interfaces/freesurfer/petsurfer.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class GTMSegInputSpec(FSTraitedSpec):
5353
usedefault=True,
5454
)
5555

56-
usf = traits.Int(argstr="--usf %i", desc="upsampling factor (default is 2)")
56+
upsampling_factor = traits.Int(argstr="--usf %i", desc="upsampling factor (default is 2)")
5757

5858
subsegwm = traits.Bool(
5959
argstr="--subsegwm", desc="subsegment WM into lobes (default)"
@@ -89,7 +89,7 @@ class GTMSegInputSpec(FSTraitedSpec):
8989
desc="annot lhbase rhbase : annotation to use for WM segmentation (with --subsegwm, default is lobes 3200 4200)",
9090
)
9191

92-
output_usf = traits.Int(
92+
output_upsampling_factor = traits.Int(
9393
argstr="--output-usf %i",
9494
desc="set output USF different than USF, mostly for debugging",
9595
)
@@ -118,7 +118,7 @@ class GTMSegInputSpec(FSTraitedSpec):
118118

119119

120120
class GTMSegOutputSpec(TraitedSpec):
121-
out_file = File(exists=True, desc="GTM segmentation")
121+
out_file = File(desc="GTM segmentation")
122122

123123

124124
class GTMSeg(FSCommand):
@@ -139,13 +139,10 @@ class GTMSeg(FSCommand):
139139
def _list_outputs(self):
140140
outputs = self.output_spec().get()
141141
outputs['gtm_file'] = os.path.join(
142-
self.inputs.subjects_dir, self.inputs.subject_id, 'mri', 'gtmseg.mgz'
142+
self.inputs.subjects_dir, self.inputs.subject_id, 'mri', self.inputs.out_file
143143
)
144144
return outputs
145145

146-
def _format_arg(self, name, spec, value):
147-
return super(GTMSeg, self)._format_arg(name, spec, value)
148-
149146

150147
class GTMPVCInputSpec(FSTraitedSpec):
151148

0 commit comments

Comments
 (0)