On Thu, May 22, 2014 at 9:26 AM, Alexandre Gramfort <
notifications@github.com> wrote:

> In examples/realtime/ftclient_rt_average.py:
>
> >
> >      for ii, ev in enumerate(rt_epochs.iter_evoked()):
> >          print("Just got epoch %d" % (ii + 1))
> > -        if ii > 0:
> > -            ev += evoked
> > -        evoked = ev
> > -        plt.clf()  # clear canvas
> > -        evoked.plot(axes=plt.gca())  # plot on current figure
> > +
> > +        event_id = int(ev.comment)
> > +
> > +        if event_id == event_ids[0]:
> > +            evoked = ev if jj == 0 else evoked + ev
> > +            jj += 1
>
> you mean you only want to average the left auditory? if so why not simply
> set event_id to [1] and skip the right auditory. I just want to keep the
> examples minimalistic.
>
yes exactly. ok, I have simplified it now.

> —
> Reply to this email directly or view it on GitHub<https://github.com/mne-tools/mne-python/pull/1296/files#r12936395>
> .
>