Changeset a6a7e8a in sasview


Ignore:
Timestamp:
Jul 31, 2009 7:22:29 PM (15 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:
6dc9ad8
Parents:
dce738a
Message:

Let fit_thread handle the fit error

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • park_integration/Fitting.py

    r4bd557d ra6a7e8a  
    5353    def fit(self,handler=None, curr_thread=None): 
    5454        """Perform the fit """ 
    55      
    56         return self._engine.fit(handler, curr_thread= curr_thread) 
    57      
     55        try: 
     56            return self._engine.fit(handler, curr_thread= curr_thread) 
     57        except: 
     58            #Let fit_thread handle the fit error 
     59            raise 
    5860     
    5961    def set_model(self,model,Uid,pars=[]): 
  • sansview/perspectives/fitting/fit_thread.py

    re733619 ra6a7e8a  
    154154         
    155155        except : 
    156             #print "uncaught exception" 
    157             raise 
     156            #Stop on exception during fitting. Todo: need to put some mssg and reset progress bar. 
     157            wx.PostEvent(self.parent, StatusEvent(status=" Fit exception occurred..." ,type="update")) 
     158            #raise 
    158159     
Note: See TracChangeset for help on using the changeset viewer.