pynetstim/coordinates.py
def _guess_hemi(self):
        
        """
        uses Freesurfer voxel coordinate to guess hemisphere.
        """
        
        self.hemi = []
        self.hemi_not_determined = []
        for s in np.arange(self.npoints):
            if self.coordinates['fsvoxel_coord'][s,0]> 128: 
                self.hemi.append('lh')   
            elif self.coordinates['fsvoxel_coord'][s,0] < 128:
                self.hemi.append('rh')   
            else:
                w = """Could not determine hemiphere for point {x},{y},{z}. Right hemiphere has been chosen arbitrarily for this point.
                 Manually set the hemiphere for this point by calling set_hemi_manually!"""
                w = w.format(x=self.coordinates['ras_coord'][s,0], y=self.coordinates['ras_coord'][s,1], z=self.coordinates['ras_coord'][s,2])
                warnings.warn(w)
                
                self.hemi_not_determined.append(s)
                self.hemi.append('rh')
                 
        self.hemi = np.array(self.hemi)

        uses Freesurfer voxel coordinate to guess hemisphere.
        
uses Freesurfer voxel coordinate to guess hemisphere.
uses Freesurfer voxel coordinate to guess hemisphere .
def _guess_hemi(self):
        self.hemi = []
        self.hemi_not_determined = []
        for s in np.arange(self.npoints):
            if self.coordinates['fsvoxel_coord'][s,0]> 128: 
                self.hemi.append('lh')   
            elif self.coordinates['fsvoxel_coord'][s,0] < 128:
                self.hemi.append('rh')   
            else:
                w = """Could not determine hemiphere for point {x},{y},{z}. Right hemiphere has been chosen arbitrarily for this point.
                 Manually set the hemiphere for this point by calling set_hemi_manually!"""
                w = w.format(x=self.coordinates['ras_coord'][s,0], y=self.coordinates['ras_coord'][s,1], z=self.coordinates['ras_coord'][s,2])
                warnings.warn(w)
                self.hemi_not_determined.append(s)
                self.hemi.append('rh')
        self.hemi = np.array(self.hemi)
def _guess_hemi ( self ) : self . hemi = [ ] self . hemi_not_determined = [ ] for s in np . arange ( self . npoints ) : if self . coordinates [ 'fsvoxel_coord' ] [ s , 0 ] > 128 : self . hemi . append ( 'lh' ) elif self . coordinates [ 'fsvoxel_coord' ] [ s , 0 ] < 128 : self . hemi . append ( 'rh' ) else : w = """Could not determine hemiphere for point {x},{y},{z}. Right hemiphere has been chosen arbitrarily for this point.
                 Manually set the hemiphere for this point by calling set_hemi_manually!""" w = w . format ( x = self . coordinates [ 'ras_coord' ] [ s , 0 ] , y = self . coordinates [ 'ras_coord' ] [ s , 1 ] , z = self . coordinates [ 'ras_coord' ] [ s , 2 ] ) warnings . warn ( w ) self . hemi_not_determined . append ( s ) self . hemi . append ( 'rh' ) self . hemi = np . array ( self . hemi )
uses Freesurfer voxel coordinate to guess hemisphere.
uses Freesurfer voxel coordinate to guess hemisphere .
"""
        uses Freesurfer voxel coordinate to guess hemisphere.
        """
self