#NEWLINE# def test_drop_channels_mixin( ) : #NEWLINE# #INDENT# 'Test channels-dropping functionality\n    ' #NEWLINE# evoked = read_evokeds ( fname , condition = 0 , proj = True ) #NEWLINE# drop_ch = evoked . ch_names [ : 3 ] #NEWLINE# ch_names = evoked . ch_names [ 3 : ] #NEWLINE# ch_names_orig = evoked . ch_names #NEWLINE# dummy = evoked . copy ( ) . drop_channels ( drop_ch ) #NEWLINE# assert_equal ( ch_names , dummy . ch_names ) #NEWLINE# assert_equal ( ch_names_orig , evoked . ch_names ) #NEWLINE# assert_equal ( len ( ch_names_orig ) , len ( evoked . data ) ) #NEWLINE# evoked . drop_channels ( drop_ch ) #NEWLINE# assert_equal ( ch_names , dummy . ch_names ) #NEWLINE# assert_equal ( len ( ch_names ) , len ( evoked . data ) )