meeko/tmp/water_map_builder.py
def best_w(self, first, second, positive=False):
        #global O, H   #@@@@@@@@@@@@@
        # TODO test different parameters to check if there's
        # a real advantage
        """
        - Return the best value between two map values
        - If any positive values are found, 0 is returned by default
        - WEIGHTED: the OA map is scaled by weight to account for the higher
                    intensity of OA maps versus HD
        """
        
        first *= self.O_weight
        second *= self.hd_boost

        if not positive and (first > 0 or second > 0):
                return 0 + self.ENTROPY
        else:
            if first < second :
                self.O += 1
                return first*self.weight
            else:
                self.H += 1
                return second*self.weight

        - Return the best value between two map values
        - If any positive values are found, 0 is returned by default
        - WEIGHTED: the OA map is scaled by weight to account for the higher
                    intensity of OA maps versus HD
        
Return the best value between two map values
If any positive values are found, 0 is returned by default
WEIGHTED: the OA map is scaled by weight to account for the higher
intensity of OA maps versus HD
Return the best value between two map values If any positive values are found 0 is returned by default WEIGHTED : the OA map is scaled by weight to account for the higher intensity of OA maps versus HD
def best_w(self, first, second, positive=False):
        first *= self.O_weight
        second *= self.hd_boost
        if not positive and (first > 0 or second > 0):
                return 0 + self.ENTROPY
        else:
            if first < second :
                self.O += 1
                return first*self.weight
            else:
                self.H += 1
                return second*self.weight
def best_w ( self , first , second , positive = False ) : first *= self . O_weight second *= self . hd_boost if not positive and ( first > 0 or second > 0 ) : return 0 + self . ENTROPY else : if first < second : self . O += 1 return first * self . weight else : self . H += 1 return second * self . weight
Return the best value between two map values
 If any positive values are found, 0 is returned by default
 WEIGHTED: the OA map is scaled by weight to account for the higher
intensity of OA maps versus HD
Return the best value between two map values If any positive values are found 0 is returned by default WEIGHTED : the OA map is scaled by weight to account for the higher intensity of OA maps versus HD
#global O, H   #@@@@@@@@@@@@@ # TODO test different parameters to check if there's # a real advantage """
        - Return the best value between two map values
        - If any positive values are found, 0 is returned by default
        - WEIGHTED: the OA map is scaled by weight to account for the higher
                    intensity of OA maps versus HD
        """
self
first
second
positive