PEATDB/plugins/KineticsAnalysis.py
def checkFit(self, E, d, cutoff):
        """Rough check of any fit using percsqdiff and return status based on cutoff"""

        edata = E.data[d]
        ekd = EkinDataset(edata)
        currfit = E.getFitData(d)

        if currfit == None or len(currfit) == 0:
            return 0
        expdata = Fitting.getExpData(edata)
        X = Fitting.makeFitter(currfit, expdata=expdata)
        sqdiff = X.getpercSqDiff()
        #print d, sqdiff
        if sqdiff >= cutoff:
            return 0
        else:
            return 1
Rough check of any fit using percsqdiff and return status based on cutoff
Rough check of any fit using percsqdiff and return status based on cutoff
Rough check of any fit using percsqdiff and return status based on cutoff
def checkFit(self, E, d, cutoff):
        edata = E.data[d]
        ekd = EkinDataset(edata)
        currfit = E.getFitData(d)
        if currfit == None or len(currfit) == 0:
            return 0
        expdata = Fitting.getExpData(edata)
        X = Fitting.makeFitter(currfit, expdata=expdata)
        sqdiff = X.getpercSqDiff()
        if sqdiff >= cutoff:
            return 0
        else:
            return 1
def checkFit ( self , E , d , cutoff ) : edata = E . data [ d ] ekd = EkinDataset ( edata ) currfit = E . getFitData ( d ) if currfit == None or len ( currfit ) == 0 : return 0 expdata = Fitting . getExpData ( edata ) X = Fitting . makeFitter ( currfit , expdata = expdata ) sqdiff = X . getpercSqDiff ( ) if sqdiff >= cutoff : return 0 else : return 1
Rough check of any fit using percsqdiff and return status based on cutoff
Rough check of any fit using percsqdiff and return status based on cutoff
"""Rough check of any fit using percsqdiff and return status based on cutoff""" #print d, sqdiff
self
E
d
cutoff