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 66ea1c2 + f380f5b commit 1a8050eCopy full SHA for 1a8050e
nipype/interfaces/fsl/model.py
@@ -383,7 +383,17 @@ class FEAT(FSLCommand):
383
384
def _list_outputs(self):
385
outputs = self._outputs().get()
386
- outputs['feat_dir'] = glob(os.path.join(os.getcwd(), '*feat'))[0]
+ is_ica = False
387
+ with open(self.inputs.fsf_file, 'rt') as fp:
388
+ text = fp.read()
389
+ if "set fmri(inmelodic) 1" in text:
390
+ is_ica = True
391
+
392
+ if is_ica:
393
+ outputs['feat_dir'] = glob(os.path.join(os.getcwd(), '*ica'))[0]
394
+ else:
395
+ outputs['feat_dir'] = glob(os.path.join(os.getcwd(), '*feat'))[0]
396
397
return outputs
398
399
0 commit comments