Changeset bd7a426 in sasview for park_integration/src/sans/fit


Ignore:
Timestamp:
Oct 20, 2011 12:59:00 PM (13 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
1345f2f
Parents:
ee19117
Message:

make sure fitresult store number of iterations

File:
1 edited

Legend:

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

    r0766d6d rbd7a426  
    474474            self.fitresult.set_model(model=self.model) 
    475475            self.fitresult.residuals = self.true_res 
     476            self.fitresult.iterations += 1 
    476477            self.fitresult.theory = theory 
    477478            
     
    823824            return "No results" 
    824825        n = len(self.model.parameterset) 
    825         self.iterations += 1 
     826         
    826827        result_param = zip(xrange(n), self.model.parameterset) 
    827828        msg1 = ["[Iteration #: %s ]" % self.iterations] 
Note: See TracChangeset for help on using the changeset viewer.