what do you think is the best approach?  

On Jul 29, 2013, at 6:57 AM, Chris Filo Gorgolewski <notifications@github.com> wrote:

> In nipype/interfaces/fsl/model.py:
> 
> > @@ -383,7 +383,12 @@ class FEAT(FSLCommand):
> >  
> >      def _list_outputs(self):
> >          outputs = self._outputs().get()
> > -        outputs['feat_dir'] = glob(os.path.join(os.getcwd(), '*feat'))[0]
> > +        try:
> > +            outputs['feat_dir'] = glob(os.path.join(os.getcwd(), '*feat'))[0]
> > +        except:
> Can we explicitly check the length of the glob output or use index out of range exception?
> 
> —
> Reply to this email directly or view it on GitHub.
> 

---
Russell A. Poldrack
Director, Imaging Research Center
Professor of Psychology and Neuroscience
University of Texas at Austin
100 East 24th Street, R9975
Austin, TX 78712

Phone: 512.232.9504
Fax:512.232.4202

Email: poldrack@mail.utexas.edu
Web: http://www.poldracklab.org