pKaTool/titration_class.py
def sub_scaled(self,other):
        """scaled difference btw two titration curves"""
        diff=0.0
        for group in self.curves.keys():
            if not other.curves.has_key(group):
                continue
                raise 'incompatible titration curves'
            for ph in self.curves[group].keys():
                if other.curves[group].has_key(ph):
                    diff=diff+self.scale(self.curves[group][ph],other.curves[group][ph])*abs(self.curves[group][ph]-other.curves[group][ph])
        return diff
scaled difference btw two titration curves
scaled difference btw two titration curves
scaled difference btw two titration curves
def sub_scaled(self,other):
        diff=0.0
        for group in self.curves.keys():
            if not other.curves.has_key(group):
                continue
                raise 'incompatible titration curves'
            for ph in self.curves[group].keys():
                if other.curves[group].has_key(ph):
                    diff=diff+self.scale(self.curves[group][ph],other.curves[group][ph])*abs(self.curves[group][ph]-other.curves[group][ph])
        return diff
def sub_scaled ( self , other ) : diff = 0.0 for group in self . curves . keys ( ) : if not other . curves . has_key ( group ) : continue raise 'incompatible titration curves' for ph in self . curves [ group ] . keys ( ) : if other . curves [ group ] . has_key ( ph ) : diff = diff + self . scale ( self . curves [ group ] [ ph ] , other . curves [ group ] [ ph ] ) * abs ( self . curves [ group ] [ ph ] - other . curves [ group ] [ ph ] ) return diff
scaled difference btw two titration curves
scaled difference btw two titration curves
"""scaled difference btw two titration curves"""
self
other