def _get_hemi(s):
 if (s['type'] != 'surf'):
  raise RuntimeError('Only surface source spaces supported')
 if (s['id'] == FIFF.FIFFV_MNE_SURF_LEFT_HEMI):
  return ('lh', 0, s['id'])
 elif (s['id'] == FIFF.FIFFV_MNE_SURF_RIGHT_HEMI):
  return ('rh', 1, s['id'])
 else:
  raise ValueError(('unknown surface ID %s' % s['id']))

def _get_hemi ( s ) : if ( s [ 'type' ] != 'surf' ) : raise RuntimeError ( 'Only surface source spaces supported' ) if ( s [ 'id' ] == FIFF . FIFFV_MNE_SURF_LEFT_HEMI ) : return ( 'lh' , 0 , s [ 'id' ] ) elif ( s [ 'id' ] == FIFF . FIFFV_MNE_SURF_RIGHT_HEMI ) : return ( 'rh' , 1 , s [ 'id' ] ) else : raise ValueError ( ( 'unknown surface ID %s' % s [ 'id' ] ) )
get a hemisphere from a given source space .