Skip to content

Commit e384080

Browse files
committed
match _overload_extension in AFNItoNIFTI
1 parent db623d6 commit e384080

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def _list_outputs(self):
178178
if outputtype == 'AFNI':
179179
ext = '.HEAD'
180180
else:
181-
Info.output_type_to_ext(outputtype)
181+
ext = Info.output_type_to_ext(outputtype)
182182
matext = '.1D'
183183
suffix = self.inputs.suffix
184184
if self.inputs.anat2epi:

nipype/interfaces/afni/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class AFNItoNIFTI(AFNICommand):
143143
input_spec = AFNItoNIFTIInputSpec
144144
output_spec = AFNICommandOutputSpec
145145

146-
def _overload_extension(self, value):
146+
def _overload_extension(self, value, name=None):
147147
path, base, ext = split_filename(value)
148148
if ext.lower() not in ['.nii', '.nii.gz', '.1d', '.1D']:
149149
ext += '.nii'

0 commit comments

Comments
 (0)