Of course I tried that ;-)

In [3]: sum([[1], [2]])
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-3-262b4f7da490> in <module>()
----> 1 sum([[1], [2]])

TypeError: unsupported operand type(s) for +: 'int' and 'list'


On Tue, Feb 12, 2013 at 4:38 PM, Alexandre Gramfort <
notifications@github.com> wrote:

> In mne/cov.py:
>
> >      if not isinstance(epochs, list):
> > -        epochs = [epochs]
> > +        epochs = _unpack_epochs(epochs)
> > +    else:
> > +        epochs = reduce(add, [_unpack_epochs(epoch) for epoch in epochs])
>
> just to check would:
>
> sum([_unpack_epochs(epoch) for epoch in epochs])
>
> work too?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mne-tools/mne-python/pull/457/files#r2979543>.
>
>