Ignore:
Timestamp:
Oct 5, 2011 7:10:39 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
a3c8e8f
Parents:
dcc93e4
Message:

fixing batch plot problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/src/sans/fit/ParkFitting.py

    r634ca14 r425e49ca  
    2727    def __init__(self, *args, **kwrds): 
    2828        fitresult.FitResult.__init__(self, *args, **kwrds) 
     29        self.theory = None 
    2930        self.inputs = [] 
    3031         
     
    4344    #xtol = 1e-4 
    4445    """Stop when simplex vertices are within xtol of each other""" 
    45     ftol = 1e-4 
     46    ftol = 5e-5 
    4647    """Stop when vertex values are within ftol of each other""" 
    4748    maxiter = None 
     
    6667        # Compute the parameter uncertainties from the jacobian 
    6768        res.calc_cov(fitness) 
     69        res.theory = result.fx 
    6870        return res 
    6971       
     
    272274            if self._cancel: return numpy.inf 
    273275            if m.isfitted and m.weight != 0: 
    274                 m.residuals = m.fitness.residuals() 
     276                m.residuals, _ = m.fitness.residuals() 
    275277                N = len(m.residuals) 
    276278                m.degrees_of_freedom = N-k if N>k else 1 
Note: See TracChangeset for help on using the changeset viewer.