PEATDB/Ekin/Fitting.py
def makeFitData(model, vrs=None, error=None):
    """Get preset ekin fit data for a model, can also use provided
       variables and error vals - returns an ekin fitdata item"""
    fitdata={}
    fitdata['model'] = model
    if error == None:
        fitdata['error']=0.0
    else:
        fitdata['error']=error
    i=0
    if vrs == None:
        #get default vals for model
        X = getFitter(model,None,None)
        vrs = X.variables
        for v in vrs:
           fitdata[i]=v
           i+=1
    else:
        for v in vrs:
           fitdata[i]=v
           i+=1
    return fitdata
Get preset ekin fit data for a model, can also use provided
       variables and error vals - returns an ekin fitdata item
Get preset ekin fit data for a model, can also use provided
variables and error vals - returns an ekin fitdata item
Get preset ekin fit data for a model can also use provided variables and error vals - returns an ekin fitdata item
def makeFitData(model, vrs=None, error=None):
    fitdata={}
    fitdata['model'] = model
    if error == None:
        fitdata['error']=0.0
    else:
        fitdata['error']=error
    i=0
    if vrs == None:
        X = getFitter(model,None,None)
        vrs = X.variables
        for v in vrs:
           fitdata[i]=v
           i+=1
    else:
        for v in vrs:
           fitdata[i]=v
           i+=1
    return fitdata
def makeFitData ( model , vrs = None , error = None ) : fitdata = { } fitdata [ 'model' ] = model if error == None : fitdata [ 'error' ] = 0.0 else : fitdata [ 'error' ] = error i = 0 if vrs == None : X = getFitter ( model , None , None ) vrs = X . variables for v in vrs : fitdata [ i ] = v i += 1 else : for v in vrs : fitdata [ i ] = v i += 1 return fitdata
Get preset ekin fit data for a model, can also use provided
variables and error vals - returns an ekin fitdata item
Get preset ekin fit data for a model can also use provided variables and error vals - returns an ekin fitdata item
"""Get preset ekin fit data for a model, can also use provided
       variables and error vals - returns an ekin fitdata item""" #get default vals for model
model
vrs
error