Skip to content

Commit 5fb85ef

Browse files
committed
added handling of output in case where FEAT creates an ica directory rather than a feat directory
1 parent d75713d commit 5fb85ef

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,12 @@ class FEAT(FSLCommand):
383383

384384
def _list_outputs(self):
385385
outputs = self._outputs().get()
386-
outputs['feat_dir'] = glob(os.path.join(os.getcwd(), '*feat'))[0]
386+
try:
387+
outputs['feat_dir'] = glob(os.path.join(os.getcwd(), '*feat'))[0]
388+
except:
389+
# in case FEAT was used to run an ICA job
390+
outputs['feat_dir'] = glob(os.path.join(os.getcwd(), '*ica'))[0]
391+
387392
return outputs
388393

389394

0 commit comments

Comments
 (0)