Changeset db427ec in sasview


Ignore:
Timestamp:
May 25, 2011 6:30:24 PM (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:
ead432b
Parents:
a3fc33d
Message:

more fix for fitstrings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/ScipyFitting.py

    ra3fc33d rdb427ec  
    5656        self.iterations += 1 
    5757        result_param = zip(xrange(n), self.model.parameterset) 
     58        msg1 = ["[Iteration #: %s ]" % self.iterations] 
     59        msg3 = ["=== goodness of fit: %s ===" % (str(self.fitness))] 
    5860        if not self.is_mac: 
    59             msg1 = ["[Iteration #: %s ]" % self.iterations] 
    6061            msg2 = ["P%-3d  %s......|.....%s" % \ 
    61                 (p[0], p[1], p[1].value)\ 
     62                (p[0], p[1], p[1].value)\ 
    6263                  for p in result_param if p[1].name in self.param_list] 
    63              
    64             msg3 = ["=== goodness of fit: %s ===" % (str(self.fitness))] 
    6564            msg =  msg1 + msg3 + msg2 
    66             msg = "\n".join(msg) 
    6765        else: 
    68             msg = '' 
     66            msg = msg1 + msg3 
     67        msg = "\n".join(msg) 
    6968        return msg 
    7069     
     
    147146                         fitresult=result, curr_thread= self.curr_thread) 
    148147        try: 
    149                 out, cov_x, _, mesg, success = optimize.leastsq(functor, 
     148            out, cov_x, _, mesg, success = optimize.leastsq(functor, 
    150149                                            model.get_params(self.param_list), 
    151150                                                    ftol=ftol, 
Note: See TracChangeset for help on using the changeset viewer.