File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -168,15 +168,17 @@ class AlignEpiAnatPy(AFNIPythonCommand):
168
168
169
169
def _list_outputs (self ):
170
170
outputs = self .output_spec ().get ()
171
- anat_prefix = '' .join (
172
- self ._gen_fname (self .inputs .anat ).split ('+' )[:- 1 ])
173
- epi_prefix = '' .join (
174
- self ._gen_fname (self .inputs .in_file ).split ('+' )[:- 1 ])
171
+ anat_prefix = self ._gen_fname (self .inputs .anat )
172
+ epi_prefix = self ._gen_fname (self .inputs .in_file )
173
+ if '+' in anat_prefix :
174
+ anat_prefix = '' .join (anat_prefix .split ('+' )[:- 1 ])
175
+ if '+' in epi_prefix :
176
+ epi_prefix = '' .join (epi_prefix .split ('+' )[:- 1 ])
175
177
outputtype = self .inputs .outputtype
176
178
if outputtype == 'AFNI' :
177
179
ext = '.HEAD'
178
180
else :
179
- Info .output_type_to_ext (outputtype )
181
+ ext = Info .output_type_to_ext (outputtype )
180
182
matext = '.1D'
181
183
suffix = self .inputs .suffix
182
184
if self .inputs .anat2epi :
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ class AFNItoNIFTI(AFNICommand):
143
143
input_spec = AFNItoNIFTIInputSpec
144
144
output_spec = AFNICommandOutputSpec
145
145
146
- def _overload_extension (self , value ):
146
+ def _overload_extension (self , value , name = None ):
147
147
path , base , ext = split_filename (value )
148
148
if ext .lower () not in ['.nii' , '.nii.gz' , '.1d' , '.1D' ]:
149
149
ext += '.nii'
You can’t perform that action at this time.
0 commit comments