def test_epoch_combine_ids():
 (raw, events, picks) = _get_data()
 epochs = Epochs(raw, events, {'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 32}, tmin, tmax, picks=picks, preload=False)
 events_new = merge_events(events, [1, 2], 12)
 epochs_new = combine_event_ids(epochs, ['a', 'b'], {'ab': 12})
 assert_equal(epochs_new['ab'].name, 'ab')
 assert_array_equal(events_new, epochs_new.events)

def test_epoch_combine_ids ( ) : ( raw , events , picks ) = _get_data ( ) epochs = Epochs ( raw , events , { 'a' : 1 , 'b' : 2 , 'c' : 3 , 'd' : 4 , 'e' : 5 , 'f' : 32 } , tmin , tmax , picks = picks , preload = False ) events_new = merge_events ( events , [ 1 , 2 ] , 12 ) epochs_new = combine_event_ids ( epochs , [ 'a' , 'b' ] , { 'ab' : 12 } ) assert_equal ( epochs_new [ 'ab' ] . name , 'ab' ) assert_array_equal ( events_new , epochs_new . events )
test combining event ids in epochs compared to events .