Changeset a3fc33d in sasview for park_integration


Ignore:
Timestamp:
May 25, 2011 5:36:47 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:
db427ec
Parents:
8433093
Message:

removed fit_string on MAC: 'cause shown a problem on MAC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/ScipyFitting.py

    re0e22f2c ra3fc33d  
    1414from sans.fit.AbstractFitEngine import SansAssembly 
    1515from sans.fit.AbstractFitEngine import FitAbort 
    16  
     16IS_MAC = True 
     17if sys.platform.count("win32") > 0: 
     18    IS_MAC = False 
     19     
    1720class fitresult(object): 
    1821    """ 
     
    3033        self.stderr = None 
    3134        self.parameters = None 
     35        self.is_mac = IS_MAC 
    3236        self.model = model 
    3337        self.param_list = param_list 
     
    5256        self.iterations += 1 
    5357        result_param = zip(xrange(n), self.model.parameterset) 
    54         msg1 = ["[Iteration #: %s ]" % self.iterations] 
    55         msg2 = ["P%-3d  %s......|.....%s" % \ 
    56                 (p[0], p[1], p[1].value)\ 
    57               for p in result_param if p[1].name in self.param_list] 
    58          
    59         msg3 = ["=== goodness of fit: %s ===" % (str(self.fitness))] 
    60         msg =  msg1 + msg3 + msg2 
    61         return "\n".join(msg) 
     58        if not self.is_mac: 
     59            msg1 = ["[Iteration #: %s ]" % self.iterations] 
     60            msg2 = ["P%-3d  %s......|.....%s" % \ 
     61                (p[0], p[1], p[1].value)\ 
     62                  for p in result_param if p[1].name in self.param_list] 
     63             
     64            msg3 = ["=== goodness of fit: %s ===" % (str(self.fitness))] 
     65            msg =  msg1 + msg3 + msg2 
     66            msg = "\n".join(msg) 
     67        else: 
     68            msg = '' 
     69        return msg 
    6270     
    6371    def print_summary(self): 
Note: See TracChangeset for help on using the changeset viewer.