def test_equalize_channels():
 (raw, events, picks) = _get_data()
 epochs1 = Epochs(raw, events, event_id, tmin, tmax, picks=picks, proj=False, preload=True)
 epochs2 = epochs1.copy()
 ch_names = epochs1.ch_names[2:]
 epochs1.drop_channels(epochs1.ch_names[:1])
 epochs2.drop_channels(epochs2.ch_names[1:2])
 my_comparison = [epochs1, epochs2]
 equalize_channels(my_comparison)
 for e in my_comparison:
  assert_equal(ch_names, e.ch_names)

def test_equalize_channels ( ) : ( raw , events , picks ) = _get_data ( ) epochs1 = Epochs ( raw , events , event_id , tmin , tmax , picks = picks , proj = False , preload = True ) epochs2 = epochs1 . copy ( ) ch_names = epochs1 . ch_names [ 2 : ] epochs1 . drop_channels ( epochs1 . ch_names [ : 1 ] ) epochs2 . drop_channels ( epochs2 . ch_names [ 1 : 2 ] ) my_comparison = [ epochs1 , epochs2 ] equalize_channels ( my_comparison ) for e in my_comparison : assert_equal ( ch_names , e . ch_names )
test equalization of channels .