done


On Fri, Aug 16, 2013 at 9:01 PM, Satrajit Ghosh <notifications@github.com>wrote:

> In nipype/interfaces/io.py:
>
> > @@ -646,6 +650,18 @@ def _list_outputs(self):
> >          info = dict([(k, v) for k, v in self.inputs.__dict__.items()
> >                       if k in self._infields])
> >
> > +        force_lists = self.inputs.force_lists
> > +        if isinstance(force_lists, bool):
> > +            force_lists = self._outfields if force_lists else []
> > +        bad_fields = set(force_lists) - set(self._outfields)
> > +        if bad_fields:
> > +            bad_fields = ", ".join(list(bad_fields))
> > +            plural = "s" if len(bad_fields) > 1 else ""
> > +            verb = "were" if len(bad_fields) > 1 else "was"
> > +            msg = ("The field%s '%s' %s set in 'force_lists' and not in "
> > +                   "'templates'.") % (plural, bad_fields, verb)
> > +            raise ValueError(msg)
>
> a test that raises this error
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/nipy/nipype/pull/637/files#r5828195>
> .
>