Ghost/Create_epsmap.py
def calc_cube(self,centercube,master=False):
        """Calculate the score when performing a permutation on this cube"""
        #
        # First init the epsmap
        #
        if not master:
            cubes=self.epsmap.get_cubes(sidelength=self.options.sidelength,eps=80.0)
        for cube in self.cube_eps.keys():
            self.epsmap.set_cubeeps(cube,self.cube_eps[cube])
        #
        # Do the permutation and calculate
        #
        old_diel=self.cube_eps[centercube]
        self.epsmap.set_cubeeps(centercube,old_diel/2.0)
        score=self.get_spans(epsmap=self.epsmap)
        self.epsmap.set_cubeeps(centercube,old_diel)
        return score
Calculate the score when performing a permutation on this cube
Calculate the score when performing a permutation on this cube
Calculate the score when performing a permutation on this cube
def calc_cube(self,centercube,master=False):
         First init the epsmap
        if not master:
            cubes=self.epsmap.get_cubes(sidelength=self.options.sidelength,eps=80.0)
        for cube in self.cube_eps.keys():
            self.epsmap.set_cubeeps(cube,self.cube_eps[cube])
         Do the permutation and calculate
        old_diel=self.cube_eps[centercube]
        self.epsmap.set_cubeeps(centercube,old_diel/2.0)
        score=self.get_spans(epsmap=self.epsmap)
        self.epsmap.set_cubeeps(centercube,old_diel)
        return score
def calc_cube ( self , centercube , master = False ) : if not master : cubes = self . epsmap . get_cubes ( sidelength = self . options . sidelength , eps = 80.0 ) for cube in self . cube_eps . keys ( ) : self . epsmap . set_cubeeps ( cube , self . cube_eps [ cube ] ) old_diel = self . cube_eps [ centercube ] self . epsmap . set_cubeeps ( centercube , old_diel / 2.0 ) score = self . get_spans ( epsmap = self . epsmap ) self . epsmap . set_cubeeps ( centercube , old_diel ) return score
Calculate the score when performing a permutation on this cube
Calculate the score when performing a permutation on this cube
"""Calculate the score when performing a permutation on this cube""" # # First init the epsmap # # # Do the permutation and calculate #
self
centercube
master