def test_drop_channels_mixin():
 (raw, events) = _get_data()[:2]
 epochs = Epochs(raw, events, event_id, tmin, tmax, preload=True)
 drop_ch = epochs.ch_names[:3]
 ch_names = epochs.ch_names[3:]
 ch_names_orig = epochs.ch_names
 dummy = epochs.copy().drop_channels(drop_ch)
 assert_equal(ch_names, dummy.ch_names)
 assert_equal(ch_names_orig, epochs.ch_names)
 assert_equal(len(ch_names_orig), epochs.get_data().shape[1])
 epochs.drop_channels(drop_ch)
 assert_equal(ch_names, epochs.ch_names)
 assert_equal(len(ch_names), epochs.get_data().shape[1])

def test_drop_channels_mixin ( ) : ( raw , events ) = _get_data ( ) [ : 2 ] epochs = Epochs ( raw , events , event_id , tmin , tmax , preload = True ) drop_ch = epochs . ch_names [ : 3 ] ch_names = epochs . ch_names [ 3 : ] ch_names_orig = epochs . ch_names dummy = epochs . copy ( ) . drop_channels ( drop_ch ) assert_equal ( ch_names , dummy . ch_names ) assert_equal ( ch_names_orig , epochs . ch_names ) assert_equal ( len ( ch_names_orig ) , epochs . get_data ( ) . shape [ 1 ] ) epochs . drop_channels ( drop_ch ) assert_equal ( ch_names , epochs . ch_names ) assert_equal ( len ( ch_names ) , epochs . get_data ( ) . shape [ 1 ] )
test channels-dropping functionality .