def test_pick_bio():
 names = 'A1 A2 Fz O BIO1 BIO2 BIO3'.split()
 types = 'mag mag eeg eeg bio bio bio'.split()
 info = create_info(names, 1024.0, types)
 idx = channel_indices_by_type(info)
 assert_array_equal(idx['mag'], [0, 1])
 assert_array_equal(idx['eeg'], [2, 3])
 assert_array_equal(idx['bio'], [4, 5, 6])

def test_pick_bio ( ) : names = 'A1 A2 Fz O BIO1 BIO2 BIO3' . split ( ) types = 'mag mag eeg eeg bio bio bio' . split ( ) info = create_info ( names , 1024.0 , types ) idx = channel_indices_by_type ( info ) assert_array_equal ( idx [ 'mag' ] , [ 0 , 1 ] ) assert_array_equal ( idx [ 'eeg' ] , [ 2 , 3 ] ) assert_array_equal ( idx [ 'bio' ] , [ 4 , 5 , 6 ] )
test picking bio channels .