PEATDB/Ekin/Ekin_main.py
def findBestModel(self, doall=False, callback=None):
        """Use fitting class to determine best fit model using f-testing"""
        models=[]
        E = self.parentapp.E
        for m in self.tempmodelvars:
            if self.tempmodelvars[m].get() == 1:
                models.append(m)
        if len(models)==0:
            return None
        if doall == False:
            d = self.parentapp.currentdataset.get()
            res, p = E.findBestModel(d, models=models, silent=True)
            callback(res, d)
        else:
            for d in E.datasets:
                if self.stopvar.get()==1:
                    break
                res, p = E.findBestModel(d, models=models, silent=True)
                callback(res, d)
        return
Use fitting class to determine best fit model using f-testing
Use fitting class to determine best fit model using f-testing
Use fitting class to determine best fit model using f - testing
def findBestModel(self, doall=False, callback=None):
        models=[]
        E = self.parentapp.E
        for m in self.tempmodelvars:
            if self.tempmodelvars[m].get() == 1:
                models.append(m)
        if len(models)==0:
            return None
        if doall == False:
            d = self.parentapp.currentdataset.get()
            res, p = E.findBestModel(d, models=models, silent=True)
            callback(res, d)
        else:
            for d in E.datasets:
                if self.stopvar.get()==1:
                    break
                res, p = E.findBestModel(d, models=models, silent=True)
                callback(res, d)
        return
def findBestModel ( self , doall = False , callback = None ) : models = [ ] E = self . parentapp . E for m in self . tempmodelvars : if self . tempmodelvars [ m ] . get ( ) == 1 : models . append ( m ) if len ( models ) == 0 : return None if doall == False : d = self . parentapp . currentdataset . get ( ) res , p = E . findBestModel ( d , models = models , silent = True ) callback ( res , d ) else : for d in E . datasets : if self . stopvar . get ( ) == 1 : break res , p = E . findBestModel ( d , models = models , silent = True ) callback ( res , d ) return
Use fitting class to determine best fit model using f-testing
Use fitting class to determine best fit model using f - testing
"""Use fitting class to determine best fit model using f-testing"""
self
doall
callback