Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions nipype/interfaces/afni/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -3773,13 +3773,18 @@ def _list_outputs(self):

if not isdefined(self.inputs.out_file):
prefix = self._gen_fname(self.inputs.in_file, suffix='_QW')
ext = '.HEAD'
suffix = '+tlrc'
outputtype = self.inputs.outputtype
if outputtype == 'AFNI':
ext = '.HEAD'
suffix = '+tlrc'
else:
ext = Info.output_type_to_ext(outputtype)
suffix = ''
else:
prefix = self.inputs.out_file
ext_ind = max([
prefix.lower().rfind('.nii.gz'),
prefix.lower().rfind('.nii.')
prefix.lower().rfind('.nii')
])
if ext_ind == -1:
ext = '.HEAD'
Expand Down