#NEWLINE# def fit( self , y , x = None , dy = None , _larch = None , **kws ) : #NEWLINE# #INDENT# fcn_kws = { #NEWLINE# #INDENT# 'y' : dy , #NEWLINE# 'x' : x , #NEWLINE# 'dy' : dy , #NEWLINE# #UNINDENT# } #NEWLINE# fcn_kws . update ( kws ) #NEWLINE# if ( _larch is not None ) : #NEWLINE# #INDENT# self . _larch = _larch #NEWLINE# #UNINDENT# f = Minimizer ( self . __objective , self . params , _larch = self . _larch , fcn_kws = fcn_kws , scale_covar = True ) #NEWLINE# f . leastsq ( ) #NEWLINE# return f