PEATDB/Ekin/Ekin_main.py
def update(self, reset=False, fitdata=None, data=None,
                   startvars=True, X=None):
        """Reset the current model and/or set new data, if provided.
           reset=True resets all vars, ie. a new model has been selected"""

        if reset == True:
            model = self.model_type.get()
            #resets current fitdata to generic start values for that model
            self.fitdata = Fitting.makeFitData(model=model)

        if fitdata != None:
            self.fitdata = fitdata
        if data != None:
            self.setData(data)
        self.updateVars(self.fitdata, reset=reset, X=X)
        if startvars == True and self.fitdata!=None:
            self.setStartVars()
        return
Reset the current model and/or set new data, if provided.
           reset=True resets all vars, ie. a new model has been selected
Reset the current model and/or set new data, if provided.
reset=True resets all vars, ie. a new model has been selected
Reset the current model and / or set new data if provided . reset = True resets all vars ie . a new model has been selected
def update(self, reset=False, fitdata=None, data=None,
                   startvars=True, X=None):
        if reset == True:
            model = self.model_type.get()
            self.fitdata = Fitting.makeFitData(model=model)
        if fitdata != None:
            self.fitdata = fitdata
        if data != None:
            self.setData(data)
        self.updateVars(self.fitdata, reset=reset, X=X)
        if startvars == True and self.fitdata!=None:
            self.setStartVars()
        return
def update ( self , reset = False , fitdata = None , data = None , startvars = True , X = None ) : if reset == True : model = self . model_type . get ( ) self . fitdata = Fitting . makeFitData ( model = model ) if fitdata != None : self . fitdata = fitdata if data != None : self . setData ( data ) self . updateVars ( self . fitdata , reset = reset , X = X ) if startvars == True and self . fitdata != None : self . setStartVars ( ) return
Reset the current model and/or set new data, if provided.
Reset the current model and / or set new data if provided .
"""Reset the current model and/or set new data, if provided.
           reset=True resets all vars, ie. a new model has been selected""" #resets current fitdata to generic start values for that model
self
reset
fitdata
data
startvars
X