We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c69d4ad + d229372 commit 967ef92Copy full SHA for 967ef92
nipype/interfaces/afni/preprocess.py
@@ -3773,13 +3773,18 @@ def _list_outputs(self):
3773
3774
if not isdefined(self.inputs.out_file):
3775
prefix = self._gen_fname(self.inputs.in_file, suffix='_QW')
3776
- ext = '.HEAD'
3777
- suffix = '+tlrc'
+ outputtype = self.inputs.outputtype
+ if outputtype == 'AFNI':
3778
+ ext = '.HEAD'
3779
+ suffix = '+tlrc'
3780
+ else:
3781
+ ext = Info.output_type_to_ext(outputtype)
3782
+ suffix = ''
3783
else:
3784
prefix = self.inputs.out_file
3785
ext_ind = max([
3786
prefix.lower().rfind('.nii.gz'),
- prefix.lower().rfind('.nii.')
3787
+ prefix.lower().rfind('.nii')
3788
])
3789
if ext_ind == -1:
3790
ext = '.HEAD'
0 commit comments