def _has_eeg_average_ref_proj(projs, check_active=False):
 for proj in projs:
  if ((proj['desc'] == 'Average EEG reference') or (proj['kind'] == FIFF.FIFFV_MNE_PROJ_ITEM_EEG_AVREF)):
   if ((not check_active) or proj['active']):
    return True
 return False

def _has_eeg_average_ref_proj ( projs , check_active = False ) : for proj in projs : if ( ( proj [ 'desc' ] == 'Average EEG reference' ) or ( proj [ 'kind' ] == FIFF . FIFFV_MNE_PROJ_ITEM_EEG_AVREF ) ) : if ( ( not check_active ) or proj [ 'active' ] ) : return True return False
determine if a list of projectors has an average eeg ref .