def test_epochs_copy():
 (raw, events, picks) = _get_data()
 epochs = Epochs(raw, events[:5], event_id, tmin, tmax, picks=picks, preload=True, reject=reject, flat=flat)
 copied = epochs.copy()
 assert_array_equal(epochs._data, copied._data)
 epochs = Epochs(raw, events[:5], event_id, tmin, tmax, picks=picks, preload=False, reject=reject, flat=flat)
 copied = epochs.copy()
 data = epochs.get_data()
 copied_data = copied.get_data()
 assert_array_equal(data, copied_data)

def test_epochs_copy ( ) : ( raw , events , picks ) = _get_data ( ) epochs = Epochs ( raw , events [ : 5 ] , event_id , tmin , tmax , picks = picks , preload = True , reject = reject , flat = flat ) copied = epochs . copy ( ) assert_array_equal ( epochs . _data , copied . _data ) epochs = Epochs ( raw , events [ : 5 ] , event_id , tmin , tmax , picks = picks , preload = False , reject = reject , flat = flat ) copied = epochs . copy ( ) data = epochs . get_data ( ) copied_data = copied . get_data ( ) assert_array_equal ( data , copied_data )
test copy epochs .