you compare mock evokeds to single trials epochs? @mainakjas
The comparison should rather focus on get_data, iter evoked is another test. Also we should draw the line somewehere to switch from mock rt tests to realtime epochs tests. closely related but not the same. Btw have you been successful with the bug in epochs.next / the returning block conditional / min length ?

On 13.07.2013, at 01:33, mainakjas <notifications@github.com> wrote:

> In mne/realtime/tests/test_mockclient.py:
> 
> > +
> > +    rt_client = MockRtClient(raw)
> > +    rt_epochs = RtEpochs(rt_client, event_id, tmin, tmax, n_epochs,
> > +                         consume_epochs=False, picks=picks)
> > +
> > +    epochs = Epochs(raw, events, event_id=event_id, tmin=tmin, tmax=tmax,
> > +                    picks=picks, baseline=(None, 0))
> > +
> > +    rt_epochs.start()
> > +    rt_client.send_data(rt_epochs, tmin=0, tmax=10, buffer_size=1000)
> > +
> > +    for ii, ev in enumerate(rt_epochs.iter_evoked()):
> > +        x_mock = ev.data
> > +        x_real = epochs.get_data()[ii, :, :]
> > +        assert_true(x_mock.shape == x_real.shape)
> > +#       assert_array_almost_equal(x_mock, x_real, decimal=6)
> ok, now this goes as @Eric89GXL suggested with Epochs getting compared to RtEpochs (which means that all the preprocessing should remain the same for both) but still the data doesn't agree @dengemann
> 
> —
> Reply to this email directly or view it on GitHub.