Ignore:
Timestamp:
May 20, 2011 3:49:01 PM (13 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:
d522635
Parents:
92697e3
Message:

improved fit error msg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitting.py

    r12cd4ec r7683f33a  
    926926                                  param_name, result.pvec,result.stderr) 
    927927                cpage._on_fit_complete() 
    928             msg = "Completed!" 
     928            if result.stderr == None: 
     929                msg = "Fit Abort: " 
     930            else: 
     931                msg = "Fitting: " 
     932            msg += "Completed!!!" 
    929933            wx.PostEvent(self.parent, StatusEvent(status=msg)) 
    930934        except ValueError: 
     
    12951299                self._plot_residuals(page_id, data, index) 
    12961300 
    1297             msg = "Plot 1D  complete !" 
     1301            msg = "Computation  complete!" 
    12981302            wx.PostEvent( self.parent, StatusEvent(status=msg, type="stop" )) 
    12991303            #self.current_pg.state.theory_data = deepcopy(self.theory_data) 
     
    13871391        else: 
    13881392            self._plot_residuals(page_id, data, index) 
    1389         msg = "Plot 2D complete !" 
     1393        msg = "Computation  complete!" 
    13901394        wx.PostEvent(self.parent, StatusEvent(status=msg, type="stop")) 
    13911395     
Note: See TracChangeset for help on using the changeset viewer.