Skip to content

Commit de58f5f

Browse files
committed
FIX: Drop initial dot from extensions for generating output filenames
1 parent 43b01a4 commit de58f5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/interfaces/freesurfer/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,11 +504,11 @@ def _list_outputs(self):
504504
outputs["glm_dir"] = glmdir
505505

506506
if isdefined(self.inputs.nii_gz):
507-
ext = '.nii.gz'
507+
ext = 'nii.gz'
508508
elif isdefined(self.inputs.nii):
509-
ext = '.nii'
509+
ext = 'nii'
510510
else:
511-
ext = '.mgh'
511+
ext = 'mgh'
512512

513513
# Assign the output files that always get created
514514
outputs["beta_file"] = os.path.join(glmdir, f"beta.{ext}")

0 commit comments

Comments
 (0)