def _triage_meg_pick(ch, meg):
 if (meg is True):
  return True
 elif (ch['unit'] == FIFF.FIFF_UNIT_T_M):
  if (meg == 'grad'):
   return True
  elif ((meg == 'planar1') and ch['ch_name'].endswith('2')):
   return True
  elif ((meg == 'planar2') and ch['ch_name'].endswith('3')):
   return True
 elif ((meg == 'mag') and (ch['unit'] == FIFF.FIFF_UNIT_T)):
  return True
 return False

def _triage_meg_pick ( ch , meg ) : if ( meg is True ) : return True elif ( ch [ 'unit' ] == FIFF . FIFF_UNIT_T_M ) : if ( meg == 'grad' ) : return True elif ( ( meg == 'planar1' ) and ch [ 'ch_name' ] . endswith ( '2' ) ) : return True elif ( ( meg == 'planar2' ) and ch [ 'ch_name' ] . endswith ( '3' ) ) : return True elif ( ( meg == 'mag' ) and ( ch [ 'unit' ] == FIFF . FIFF_UNIT_T ) ) : return True return False
triage an meg pick type .