def _get_label_flip(labels, label_vertidx, src):
 from .label import label_sign_flip
 label_flip = list()
 for (label, vertidx) in zip(labels, label_vertidx):
  if (label.hemi == 'both'):
   raise ValueError('BiHemiLabel not supported when using sign-flip')
  if (vertidx is not None):
   flip = label_sign_flip(label, src)[:, None]
  else:
   flip = None
  label_flip.append(flip)
 return label_flip

def _get_label_flip ( labels , label_vertidx , src ) : from . label import label_sign_flip label_flip = list ( ) for ( label , vertidx ) in zip ( labels , label_vertidx ) : if ( label . hemi == 'both' ) : raise ValueError ( 'BiHemiLabel not supported when using sign-flip' ) if ( vertidx is not None ) : flip = label_sign_flip ( label , src ) [ : , None ] else : flip = None label_flip . append ( flip ) return label_flip
get sign-flip for labels .