def test_preload_epochs():
 (raw, events, picks) = _get_data()
 epochs_preload = Epochs(raw, events[:16], event_id, tmin, tmax, picks=picks, preload=True, reject=reject, flat=flat)
 data_preload = epochs_preload.get_data()
 epochs = Epochs(raw, events[:16], event_id, tmin, tmax, picks=picks, preload=False, reject=reject, flat=flat)
 data = epochs.get_data()
 assert_array_equal(data_preload, data)
 assert_array_almost_equal(epochs_preload.average().data, epochs.average().data, 18)

def test_preload_epochs ( ) : ( raw , events , picks ) = _get_data ( ) epochs_preload = Epochs ( raw , events [ : 16 ] , event_id , tmin , tmax , picks = picks , preload = True , reject = reject , flat = flat ) data_preload = epochs_preload . get_data ( ) epochs = Epochs ( raw , events [ : 16 ] , event_id , tmin , tmax , picks = picks , preload = False , reject = reject , flat = flat ) data = epochs . get_data ( ) assert_array_equal ( data_preload , data ) assert_array_almost_equal ( epochs_preload . average ( ) . data , epochs . average ( ) . data , 18 )
test preload of epochs .