def _check_channel_names(inst, ref_names):
 if isinstance(ref_names, str):
  ref_names = [ref_names]
 ref_idx = pick_channels(inst.info['ch_names'], ref_names)
 assert_true(len(ref_idx), len(ref_names))
 inst.info._check_consistency()

def _check_channel_names ( inst , ref_names ) : if isinstance ( ref_names , str ) : ref_names = [ ref_names ] ref_idx = pick_channels ( inst . info [ 'ch_names' ] , ref_names ) assert_true ( len ( ref_idx ) , len ( ref_names ) ) inst . info . _check_consistency ( )
check channel names .