Changeset d603001 in sasview for park_integration


Ignore:
Timestamp:
Jan 31, 2011 9:59:01 AM (14 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:
3f6508f
Parents:
d0ecb36
Message:

Added iteration # in str on Scipy_fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/ScipyFitting.py

    rc4d6900 rd603001  
    3131        self.model = model 
    3232        self.param_list = param_list 
     33        self.iterations = 0 
    3334      
    3435    def set_model(self, model): 
     
    4849            return "No results" 
    4950        n = len(self.model.parameterset) 
    50  
     51        self.iterations += 1 
    5152        result_param = zip(xrange(n), self.model.parameterset) 
    52         msg = ["P%-3d  %s......|.....%s" % (p[0], p[1], p[1].value)\ 
     53        msg = [" [Iteration #: %s] | P%-3d  %s......|.....%s" % \ 
     54               (self.iterations, p[0], p[1], p[1].value)\ 
    5355              for p in result_param if p[1].name in self.param_list] 
    5456        msg.append("=== goodness of fit: %s" % (str(self.fitness))) 
Note: See TracChangeset for help on using the changeset viewer.