def test_epoch_multi_ids():
 (raw, events, picks) = _get_data()
 epochs = Epochs(raw, events, {'a/b/a': 1, 'a/b/b': 2, 'a/c': 3, 'b/d': 4, 'a_b': 5}, tmin, tmax, picks=picks, preload=False)
 epochs_regular = epochs['a/b']
 epochs_reverse = epochs['b/a']
 epochs_multi = epochs[['a/b/a', 'a/b/b']]
 assert_array_equal(epochs_multi.events, epochs_regular.events)
 assert_array_equal(epochs_reverse.events, epochs_regular.events)
 assert_allclose(epochs_multi.get_data(), epochs_regular.get_data())
 assert_allclose(epochs_reverse.get_data(), epochs_regular.get_data())

def test_epoch_multi_ids ( ) : ( raw , events , picks ) = _get_data ( ) epochs = Epochs ( raw , events , { 'a/b/a' : 1 , 'a/b/b' : 2 , 'a/c' : 3 , 'b/d' : 4 , 'a_b' : 5 } , tmin , tmax , picks = picks , preload = False ) epochs_regular = epochs [ 'a/b' ] epochs_reverse = epochs [ 'b/a' ] epochs_multi = epochs [ [ 'a/b/a' , 'a/b/b' ] ] assert_array_equal ( epochs_multi . events , epochs_regular . events ) assert_array_equal ( epochs_reverse . events , epochs_regular . events ) assert_allclose ( epochs_multi . get_data ( ) , epochs_regular . get_data ( ) ) assert_allclose ( epochs_reverse . get_data ( ) , epochs_regular . get_data ( ) )
test epoch selection via multiple/partial keys .