>
> you compare mock evokeds to single trials epochs? @mainakjas<https://github.com/mainakjas>The comparison should rather focus on get_data, iter evoked is another
> test.
>

ok, agreed. I'll make the changes and let you know.


> Also we should draw the line somewehere to switch from mock rt tests to
> realtime epochs tests. closely related but not the same.
>

yes exactly. do I add the tests for realtime epochs or does @mluessi
already have something in mind/made some progress here. Do we need tests
for the real client too? How would we do that?


> Btw have you been successful with the bug in epochs.next / the returning
> block conditional / min length ?
>

The only case when we get stuck in the loop is when the measurement
interval (tmin, tmax) in `MockRtClient.send_data()` doesn't include as many
`n_epochs` as specified while instantiating an object of `RtEpochs`. I just
increased tmax and now this works fine.

We should probably have an if condition in our mockclient that checks this
and somehow exits gracefully instead of getting stuck in a loop. What do
you think?


> … <#13fd6b4a93d4eba2_>
> 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 <https://github.com/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 <https://github.com/dengemann> — Reply to this email directly
> or view it on GitHub.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mne-tools/mne-python/pull/615/files#r5178673>
> .
>