def read_bad_channels(fid, node):
 nodes = dir_tree_find(node, FIFF.FIFFB_MNE_BAD_CHANNELS)
 bads = []
 if (len(nodes) > 0):
  for node in nodes:
   tag = find_tag(fid, node, FIFF.FIFF_MNE_CH_NAME_LIST)
   if ((tag is not None) and (tag.data is not None)):
    bads = tag.data.split(':')
 return bads

def read_bad_channels ( fid , node ) : nodes = dir_tree_find ( node , FIFF . FIFFB_MNE_BAD_CHANNELS ) bads = [ ] if ( len ( nodes ) > 0 ) : for node in nodes : tag = find_tag ( fid , node , FIFF . FIFF_MNE_CH_NAME_LIST ) if ( ( tag is not None ) and ( tag . data is not None ) ) : bads = tag . data . split ( ':' ) return bads
read bad channels .