def test_iter_evoked():
 (raw, events, picks) = _get_data()
 epochs = Epochs(raw, events[:5], event_id, tmin, tmax, picks=picks)
 for (ii, ev) in enumerate(epochs.iter_evoked()):
  x = ev.data
  y = epochs.get_data()[ii, :, :]
  assert_array_equal(x, y)

def test_iter_evoked ( ) : ( raw , events , picks ) = _get_data ( ) epochs = Epochs ( raw , events [ : 5 ] , event_id , tmin , tmax , picks = picks ) for ( ii , ev ) in enumerate ( epochs . iter_evoked ( ) ) : x = ev . data y = epochs . get_data ( ) [ ii , : , : ] assert_array_equal ( x , y )
test the iterator for epochs -> evoked .