pKaTool/explore/analyze_pHact.py
def fit_curves(self,curves):
        """Fit the titration curves to the HH equation"""
        error=[]
        import string, pKarun, pKarun.pKa_general
        PKana=pKarun.pKa_general.pKanalyse()
        for group in curves.keys():
            solution,sq=PKana.fit_to_henderson(curves[group])
            sq=solution[0]
            try:
                sq=float(sq)
            except:
                sq=0.0
            error.append(abs(sq))
        return sum(error)/len(error)
Fit the titration curves to the HH equation
Fit the titration curves to the HH equation
Fit the titration curves to the HH equation
def fit_curves(self,curves):
        error=[]
        import string, pKarun, pKarun.pKa_general
        PKana=pKarun.pKa_general.pKanalyse()
        for group in curves.keys():
            solution,sq=PKana.fit_to_henderson(curves[group])
            sq=solution[0]
            try:
                sq=float(sq)
            except:
                sq=0.0
            error.append(abs(sq))
        return sum(error)/len(error)
def fit_curves ( self , curves ) : error = [ ] import string , pKarun , pKarun . pKa_general PKana = pKarun . pKa_general . pKanalyse ( ) for group in curves . keys ( ) : solution , sq = PKana . fit_to_henderson ( curves [ group ] ) sq = solution [ 0 ] try : sq = float ( sq ) except : sq = 0.0 error . append ( abs ( sq ) ) return sum ( error ) / len ( error )
Fit the titration curves to the HH equation
Fit the titration curves to the HH equation
"""Fit the titration curves to the HH equation"""
self
curves