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.
1 parent 44ed184 commit db623d6Copy full SHA for db623d6
nipype/interfaces/afni/preprocess.py
@@ -168,10 +168,12 @@ class AlignEpiAnatPy(AFNIPythonCommand):
168
169
def _list_outputs(self):
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])
+ anat_prefix = self._gen_fname(self.inputs.anat)
+ epi_prefix = self._gen_fname(self.inputs.in_file)
+ if '+' in anat_prefix:
+ anat_prefix = ''.join(anat_prefix.split('+')[:-1])
175
+ if '+' in epi_prefix:
176
+ epi_prefix = ''.join(epi_prefix.split('+')[:-1])
177
outputtype = self.inputs.outputtype
178
if outputtype == 'AFNI':
179
ext = '.HEAD'
0 commit comments