Skip to content

Commit 9a23f55

Browse files
gpiantonioesteban
authored andcommitted
Qwarp can have NIFTI and NIFTI_GZ as extensions
1 parent c69d4ad commit 9a23f55

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3773,8 +3773,13 @@ def _list_outputs(self):
37733773

37743774
if not isdefined(self.inputs.out_file):
37753775
prefix = self._gen_fname(self.inputs.in_file, suffix='_QW')
3776-
ext = '.HEAD'
3777-
suffix = '+tlrc'
3776+
outputtype = self.inputs.outputtype
3777+
if outputtype == 'AFNI':
3778+
ext = '.HEAD'
3779+
suffix = '+tlrc'
3780+
else:
3781+
ext = Info.output_type_to_ext(outputtype)
3782+
suffix = ''
37783783
else:
37793784
prefix = self.inputs.out_file
37803785
ext_ind = max([

0 commit comments

Comments
 (0)