Changeset 25e3fc9 in sasview for sansview/perspectives/fitting/fitting.py
- Timestamp:
- Jan 26, 2010 5:46:22 PM (15 years ago)
- 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:
- e84e1e6
- Parents:
- fcd8887d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
r9237df4 r25e3fc9 459 459 self.current_pg= page 460 460 except: 461 raise 462 #msg= "%s error: %s" % (engineType,sys.exc_value) 463 #wx.PostEvent(self.parent, StatusEvent(status= msg )) 464 #return 461 msg= "%s error: %s" % (engineType,sys.exc_value) 462 wx.PostEvent(self.parent, StatusEvent(status= msg )) 463 return 465 464 466 465 #Do the simultaneous fit … … 501 500 print "in pluging" 502 501 except: 503 raise 504 # msg= "%s error: %s" % (engineType,sys.exc_value) 505 # wx.PostEvent(self.parent, StatusEvent(status= msg ,type="stop")) 506 # return 502 msg= "%s error: %s" % (engineType,sys.exc_value) 503 wx.PostEvent(self.parent, StatusEvent(status= msg ,type="stop")) 504 return 507 505 508 506 def ready_fit(self, calc_fit): … … 641 639 value.clear_model_param() 642 640 except: 643 raise 644 #msg= title +" error: %s" % sys.exc_value 645 #wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) 646 #return 641 msg= title +" error: %s" % sys.exc_value 642 wx.PostEvent(self.parent, StatusEvent(status= msg, type="stop")) 643 return 647 644 648 645 def _onSelect(self,event): … … 776 773 777 774 except: 778 raise 779 #msg= "Single Fit completed but Following error occurred:%s"% sys.exc_value 780 #wx.PostEvent(self.parent, StatusEvent(status=msg,type="stop")) 781 #return 775 msg= "Single Fit completed but Following error occurred:%s"% sys.exc_value 776 wx.PostEvent(self.parent, StatusEvent(status=msg,type="stop")) 777 return 782 778 783 779 … … 829 825 page.onsetValues(result.fitness, small_param_name,small_out,small_cov) 830 826 except: 831 raise 832 #msg= "Simultaneous Fit completed" 833 #msg +=" but Following error occurred:%s"%sys.exc_value 834 #wx.PostEvent(self.parent, StatusEvent(status=msg,type="stop")) 835 #return 827 msg= "Simultaneous Fit completed" 828 msg +=" but Following error occurred:%s"%sys.exc_value 829 wx.PostEvent(self.parent, StatusEvent(status=msg,type="stop")) 830 return 836 831 837 832 … … 1205 1200 1206 1201 except: 1207 raise 1208 #msg= " Error occurred when drawing %s Model 2D: "%model.name 1209 #msg+= " %s"%sys.exc_value 1210 #wx.PostEvent( self.parent, StatusEvent(status= msg )) 1211 #return 1202 msg= " Error occurred when drawing %s Model 2D: "%model.name 1203 msg+= " %s"%sys.exc_value 1204 wx.PostEvent( self.parent, StatusEvent(status= msg )) 1205 return 1212 1206 1213 1207 def _draw_model1D(self, model, data=None, smearer= None,
Note: See TracChangeset
for help on using the changeset viewer.