PEATDB/Ekin/Fitting.py
def guess_start(self):
            """Guess start vals using provided strings in guess dict"""
            if self.guess==None:
                return
            guess = self.guess
            #print guess
            if type(guess) is not types.DictType:
                guess = eval(guess)
            x=[i[0] for i in self.exp_data]
            y=[i[1] for i in self.exp_data]                
            for i in range(len(self.varnames)):
                var = self.varnames[i]                    
                if var in guess:
                    self.variables[i] = eval(guess[var])
                    #print  i, var, guess[var],self.variables[i]
            return
Guess start vals using provided strings in guess dict
Guess start vals using provided strings in guess dict
Guess start vals using provided strings in guess dict
def guess_start(self):
            if self.guess==None:
                return
            guess = self.guess
            if type(guess) is not types.DictType:
                guess = eval(guess)
            x=[i[0] for i in self.exp_data]
            y=[i[1] for i in self.exp_data]                
            for i in range(len(self.varnames)):
                var = self.varnames[i]                    
                if var in guess:
                    self.variables[i] = eval(guess[var])
            return
def guess_start ( self ) : if self . guess == None : return guess = self . guess if type ( guess ) is not types . DictType : guess = eval ( guess ) x = [ i [ 0 ] for i in self . exp_data ] y = [ i [ 1 ] for i in self . exp_data ] for i in range ( len ( self . varnames ) ) : var = self . varnames [ i ] if var in guess : self . variables [ i ] = eval ( guess [ var ] ) return
Guess start vals using provided strings in guess dict
Guess start vals using provided strings in guess dict
"""Guess start vals using provided strings in guess dict""" #print guess #print  i, var, guess[var],self.variables[i]
self