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 0437713 commit ed45069Copy full SHA for ed45069
nipype/interfaces/freesurfer/model.py
@@ -756,7 +756,10 @@ def _list_outputs(self):
756
if not isdefined(outfile):
757
for key in ['label_file', 'annot_file', 'seg_file']:
758
if isdefined(getattr(self.inputs,key)):
759
- _, src = os.path.split(getattr(self.inputs, key))
+ foo = getattr(self.inputs, key)
760
+ if isinstance(foo,list):
761
+ foo = foo[0]
762
+ _, src = os.path.split(foo)
763
if isdefined(self.inputs.aparc_aseg):
764
src = 'aparc+aseg.mgz'
765
outfile = fname_presuffix(src, suffix='_vol.nii.gz',
0 commit comments